Upgrade Cypress Github Action #117
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: build | |
on: | |
push: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
# Install the Node version specified in the project `.node-version` file | |
- uses: nodenv/actions/node-version@v2.0.9 | |
id: nodenv | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "${{ steps.nodenv.outputs.node-version }}" | |
# Yarn will also have been installed by actions/setup-node@v1 | |
- run: yarn install --immutable | |
- run: yarn checkFormatting | |
- run: yarn workspace shared build | |
- run: yarn workspace server build | |
- run: yarn workspace client build | |
# Fix version so that it doesn't advance over time unless we want it to | |
- uses: cypress-io/github-action@v6.7.1 | |
with: | |
start: yarn workspace integration start | |
wait-on: "http://localhost:5000" | |
command: yarn workspace tests start |