Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save washingtonsoares/24c064dc7353dc762a44d13fd4468d4d to your computer and use it in GitHub Desktop.
Save washingtonsoares/24c064dc7353dc762a44d13fd4468d4d to your computer and use it in GitHub Desktop.
tests.yml
name: Tests
on:
push:
pull_request:
branches: [ $default-branch ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: 10
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Test
run: yarn test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment