Skip to content

Commit

Permalink
Upgrade dependent GitHub actions and CI orbs
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Sep 15, 2024
1 parent b3da6cd commit 73d4de9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2.1

orbs:
browser-tools: circleci/browser-tools@1.2.4
codecov: codecov/codecov@3.2.4
browser-tools: circleci/browser-tools@1.4.8
codecov: codecov/codecov@4.1.0

executors:
node:
Expand Down
25 changes: 5 additions & 20 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,42 +36,27 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install yarn
id: yarn
shell: bash
run: |
cd $HOME && yarn policies set-version $YARN_VERSION
echo "cache_dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Cache yarn
uses: actions/cache@v3
with:
path: ${{ steps.yarn.outputs.cache_dir }}
key: yarn_cache-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn_cache-${{ runner.os }}-${{ matrix.node-version }}-
yarn_cache-${{ runner.os }}-
cache: yarn

- name: Install dependencies with yarn
run: yarn install --frozen-lockfile ${{ matrix.force && '--ignore-engines' || '' }}

# Retry tests up to 3 times due to flaky tests on Windows CI
# https://stackoverflow.com/a/59365905
- name: Jest
env:
CI: true
run: >-
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit --forceExit ||
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit --forceExit --no-cache ||
yarn test:coverage --ci -i --reporters=default --reporters=jest-junit --forceExit --no-cache
env:
CI: true
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage

- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: windows

0 comments on commit 73d4de9

Please sign in to comment.