Cypress 13 Upgrade #104
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: Continuous Integration | |
on: push | |
jobs: | |
build_test: | |
name: Build and Run Jest Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Build | |
run: npm run build | |
- name: Run Tests | |
run: npm run test | |
cypress: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: cypress-io/github-action@v5 | |
with: | |
install-command: npm ci --legacy-peer-deps | |
browser: chrome | |
start: npm start | |
wait-on: 'http://localhost:8080' | |
s3-deploy2: | |
name: S3 Deploy | |
needs: | |
- build_test | |
- cypress | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: npm ci --legacy-peer-deps | |
env: | |
# skip installing cypress since it isn't needed for just building | |
# This decreases the deploy time quite a bit | |
CYPRESS_INSTALL_BINARY: 0 | |
- uses: concord-consortium/s3-deploy-action@v1 | |
with: | |
build: npm run build-production | |
bucket: models-resources | |
prefix: seismic-explorer | |
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# Parameters to GHActions have to be strings, so a regular yaml array cannot | |
# be used. Instead the `|` turns the following lines into a string | |
topBranches: | | |
["master"] |