Skip to content

Instantly share code, notes, and snippets.

@emsesc
Last active July 16, 2021 20:57
Show Gist options
  • Save emsesc/2ff76c8c39172bae7ec313b949c0dd75 to your computer and use it in GitHub Desktop.
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!
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
@emsesc
Copy link
Author

emsesc commented Jul 10, 2021

Week 4 Config Fix

To resolve an error in your repo if you try to test your HTML/JS code, please:

  1. Copy paste this file
  2. Replace the content in .github/workflows/twocatz-frontend.yml IN THE twocatz-frontend BRANCH with this file
  3. Commit to the twocatz-frontend branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment