fix(deps): update dependency minimatch to v9 - autoclosed #2292
Workflow file for this run
This file contains 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: [saga] | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v3 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn | |
- name: Run unit tests | |
run: yarn test | |
- name: Start dev server | |
run: | | |
nohup yarn dev > server.log 2>&1 & echo $! > run.pid | |
echo "DEVSERVER_PID=`cat run.pid`" >> $GITHUB_ENV | |
- name: Wait for dev server to be up | |
run: until nc -w 10 127.0.0.1 8000; do tail -n 20 server.log; sleep 10; done | |
timeout-minutes: 5 | |
- name: Kill dev server | |
run: kill ${{ env.DEVSERVER_PID }} | |
- name: Build | |
run: yarn build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-${{ github.sha }} | |
path: public | |
- name: Start prod sever | |
run: | | |
nohup yarn run serve > prod-server.log 2>&1 & echo $! > run.pid | |
echo "PRODSERVER_PID=`cat run.pid`" >> $GITHUB_ENV | |
- name: Install playwright | |
run: npx playwright install | |
- name: Wait for prod server to be up | |
run: until nc -w 10 127.0.0.1 9000; do tail -n 20 prod-server.log; sleep 10; done | |
timeout-minutes: 5 | |
- name: Run end-to-end tests | |
env: | |
PORT: 9000 | |
run: npx playwright test --project=chrome | |
- name: Kill prod server | |
run: kill ${{ env.PRODSERVER_PID }} |