chore(deps-dev): Bump the lint group across 1 directory with 9 updates #361
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main, develop, "fix/*"] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.NX_CACHE_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.NX_CACHE_AWS_SECRET_ACCESS_KEY }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
- run: | | |
echo "Nx base: ${{ env.NX_BASE }}" | |
echo "Git head: ${{ env.NX_HEAD }}" | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- name: Disable TCP/UDP Offloading | |
shell: bash | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo ethtool -K eth0 tx off rx off | |
exit 0 | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
sudo sysctl -w net.link.generic.system.hwcksum_tx=0 | |
sudo sysctl -w net.link.generic.system.hwcksum_rx=0 | |
exit 0 | |
else | |
echo "$RUNNER_OS not supported" | |
exit 0 | |
fi | |
- name: Install repo dependencies | |
run: yarn install --network-timeout 1000000 --forzen-lockfile | |
- name: Get installed Playwright version | |
id: playwright-version | |
run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('@playwright/test/package.json').version)")" >> $GITHUB_ENV | |
- name: Cache Playwright binaries | |
uses: actions/cache@v4 | |
id: playwright-cache | |
with: | |
path: | | |
~/.cache/ms-playwright | |
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
- name: Install Playwright with dependencies | |
if: steps.playwright-cache.outputs.cache-hit != 'true' | |
run: yarn playwright install --with-deps | |
- name: Install Playwright's dependencies | |
if: steps.playwright-cache.outputs.cache-hit == 'true' | |
run: yarn playwright install-deps | |
- name: Unit test the Dev Suite | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
CI: true | |
run: yarn nx affected --target=test --parallel=1 --exclude=pocket --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} | |
- name: Execute end-to-end tests | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
CI: true | |
run: yarn nx affected --target=e2e --parallel=1 --exclude=pocket --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }} |