Skip to content

Revert "fix to make scripture selection easier." #841

Revert "fix to make scripture selection easier."

Revert "fix to make scripture selection easier." #841

Workflow file for this run

name: Install, Build & Run Cypress
on: [push]
env:
CHILD_CONCURRENCY: 1
ACTIONS_ALLOW_UNSECURE_COMMANDS: ${{ secrets.ACTIONS_ALLOW_UNSECURE_COMMANDS}}
NODE_ENV: test
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
jobs:
test:
runs-on: macos-latest
strategy:
matrix:
node-version: [16.14.0]
steps:
- name: Extract Branch Name
run: echo "::set-env name=BRANCH::${GITHUB_REF##*/}"
- uses: actions/checkout@v1
with:
ref: ${{ env.BRANCH }}
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Cache Cypress
uses: actions/cache@v1
id: cypress_cache
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-cypress-
- name: Install Packages
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn;
- name: Run Tests
run: yarn test;
- name: Create Badge For Coverage Results
run: yarn create-coverage-badge;
- name: Commit Coverage Results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add ./coverage/shields.json -f
git checkout .
git diff-index --quiet HEAD || git commit -m "Add Coverage Results"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.ACTIONS_TOKEN }}
branch: ${{ env.BRANCH }}