Skip to content

Commit

Permalink
chore: add actions tests (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
amilajack committed Dec 14, 2020
1 parent c429fa2 commit 3c5f1ef
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/FUNDING.yml
@@ -1,2 +1,3 @@
github: amilajack
github: [amilajack]
patreon: amilajack
custom: ['https://paypal.me/amilajack', 'https://venmo.com/amilajack']
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,38 @@
name: Test

on: push

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-10.14, ubuntu-18.04, windows-2019]

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 15

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install
run: yarn --frozen-lockfile

- name: yarn test
run: yarn test

0 comments on commit 3c5f1ef

Please sign in to comment.