Skip to content

Commit

Permalink
Add github actions for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Eklund committed Jul 16, 2022
1 parent 3318a2c commit 64ad08c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 60 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/npm-build.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/npm-test.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/yarn-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will run tests using node

name: Yarn Test

on:
push:
branches: [ main, develop ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
cache: 'yarn'
cache-dependency-path: |
yarn.lock
demo/yarn.lock
- name: yarn install
run: yarn install --frozen-lockfile
- name: yarn-install-demo
working-directory: demo
run: yarn install --frozen-lockfile
- name: yarn build
run: yarn run build
- name: yarn-test-demo
run: yarn test:ci
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
/demo/node_modules
/demo/dist
/demo/build
demo/yarn.lock
/umd
npm-debug.log*
*.swp
*.swo
.DS_Store
yarn.lock
yarn-error.log

0 comments on commit 64ad08c

Please sign in to comment.