Last active
July 16, 2021 20:57
-
-
Save emsesc/2ff76c8c39172bae7ec313b949c0dd75 to your computer and use it in GitHub Desktop.
Copy paste this file and commit it to your .github/workflows/twocatz-frontend.yml file on the twocatz-frontend branch. Completely replace the content with this!
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: twoCatz Frontend | |
on: | |
push: | |
branches: | |
- twocatz-frontend | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Node Environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Get Count | |
id: vars | |
run: echo ::set-output name=count::$(cat ./.bit/.progress) | |
- name: Install Cypress | |
run: npm install cypress | |
- name: Step 5 | |
uses: cypress-io/github-action@v2 | |
if: ${{steps.vars.outputs.count == 43 && github.event.head_commit.message != 'Update progress'}} | |
with: | |
spec: cypress/integration/4.5.spec.js | |
- name: Step 6 | |
if: ${{steps.vars.outputs.count == 44 && github.event.head_commit.message != 'Update progress'}} | |
env: | |
TWOCATZ_ENDPOINT: ${{ secrets.TWOCATZ_ENDPOINT }} | |
run: | | |
npm install node-fetch | |
node .bit/tests/test.4.6.js | |
- name: Step 7 | |
uses: cypress-io/github-action@v2 | |
if: ${{steps.vars.outputs.count == 45 && github.event.head_commit.message != 'Update progress'}} | |
with: | |
spec: cypress/integration/4.7.spec.js | |
- name: Check for branch | |
if: ${{steps.vars.outputs.count > 45 && github.event.head_commit.message != 'Update progress'}} | |
run: | | |
node .bit/tests/wrongbranch.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Week 4 Config Fix
twocatz-frontend
BRANCH with this filetwocatz-frontend
branch