Created
March 20, 2021 23:50
-
-
Save washingtonsoares/24c064dc7353dc762a44d13fd4468d4d to your computer and use it in GitHub Desktop.
tests.yml
This file contains hidden or 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: 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