☕️ Classic, reliable, trusted test framework for Node.js and the browser
chore(ci): upgrade GH actions to latest versions (#4899)
Darius Dzien84b2f846148b
diff --git a/.github/workflows/browser-test.yml b/.github/workflows/browser-test.ymlindex 40d746e6..306a139e 100644--- a/.github/workflows/browser-test.yml+++ b/.github/workflows/browser-test.yml@@ -12,14 +12,14 @@ jobs:runs-on: ubuntu-latestif: contains(github.event.pull_request.labels.*.name, 'run-browser-test')steps:- - uses: actions/setup-node@v2+ - uses: actions/setup-node@v3with:node-version: 16- - uses: actions/checkout@v2+ - uses: actions/checkout@v3with:ref: ${{ github.event.pull_request.head.sha }}- name: 'Cache node_modules'- uses: actions/cache@v2+ uses: actions/cache@v3with:path: '~/.npm'key: "ubuntu-latest-node-full-v16-${{ hashFiles('**/package-lock.json') }}"diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.ymlindex 771d243d..d4f7a667 100644--- a/.github/workflows/mocha.yml+++ b/.github/workflows/mocha.yml@@ -22,7 +22,7 @@ jobs:- name: Check event pull_requestif: github.event_name == 'pull_request'run: 'echo pull_request: run workflow'- - uses: actions/checkout@v2+ - uses: actions/checkout@v3if: github.event_name == 'push'- name: Check event pushid: findPr@@ -46,8 +46,8 @@ jobs:- 16- 18steps:- - uses: actions/checkout@v2- - uses: actions/setup-node@v2+ - uses: actions/checkout@v3+ - uses: actions/setup-node@v3with:node-version: '${{ matrix.node }}'- run: npm install --production@@ -58,12 +58,12 @@ jobs:runs-on: ubuntu-latestneeds: smokesteps:- - uses: actions/setup-node@v2+ - uses: actions/setup-node@v3with:node-version: 16- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- name: 'Cache node_modules'- uses: actions/cache@v2+ uses: actions/cache@v3with:path: '~/.npm'key: "ubuntu-latest-node-v16-${{ hashFiles('**/package-lock.json') }}"@@ -95,17 +95,17 @@ jobs:env:COVERAGE: 1steps:- - uses: actions/setup-node@v2+ - uses: actions/setup-node@v3with:node-version: '${{ matrix.node }}'- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- name: Get npm cache directory in Windowsid: npm-cacheif: ${{ matrix.os == 'windows-2019' }}run: |echo "::set-output name=dir::$(npm config get cache)"- name: 'Cache node_modules'- uses: actions/cache@v2+ uses: actions/cache@v3with:path: ${{ matrix.os == 'ubuntu-latest' && '~/.npm' || steps.npm-cache.outputs.dir }}key: "${{ matrix.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}"@@ -139,12 +139,12 @@ jobs:# Don't run forked 'pull_request' without saucelabs tokenif: github.event_name == 'push' || !github.event.pull_request.head.repo.forksteps:- - uses: actions/setup-node@v2+ - uses: actions/setup-node@v3with:node-version: 16- - uses: actions/checkout@v2+ - uses: actions/checkout@v3- name: 'Cache node_modules'- uses: actions/cache@v2+ uses: actions/cache@v3with:path: '~/.npm'# this key is different than above, since we are running scripts