diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58beedf47..b9084d10e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,38 +4,38 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'yarn' - - run: yarn install --frozen-lockfile - - run: yarn run playwright install --with-deps - - run: yarn build - - - name: Set Chrome Version - run: | - CHROMEVER="$(chromedriver --version | cut -d' ' -f2)" - echo "Actions ChromeDriver is $CHROMEVER" - echo "CHROMEVER=${CHROMEVER}" >> $GITHUB_ENV - - - name: Lint - run: yarn lint - - - name: Unit Test - run: yarn test:unit - - - name: Chrome Test - run: yarn test:browser --project=chrome - - - name: Firefox Test - run: yarn test:browser --project=firefox - - - uses: actions/upload-artifact@v3 - with: - name: turbo-dist - path: dist/* + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: 'yarn' + - name: Install Playwright dependencies + run: yarn install --frozen-lockfile + - run: yarn run playwright install --with-deps + - run: yarn build + + - name: Set Chrome Version + run: | + CHROMEVER="$(chromedriver --version | cut -d' ' -f2)" + echo "Actions ChromeDriver is $CHROMEVER" + echo "CHROMEVER=${CHROMEVER}" >> $GITHUB_ENV + + - name: Lint + run: yarn lint + + - name: Unit Test + run: yarn test:unit + + - name: Chrome Test + run: yarn test:browser --project=chrome + + - name: Firefox Test + run: yarn test:browser --project=firefox + + - uses: actions/upload-artifact@v3 + with: + name: turbo-dist + path: dist/*