Skip to content

Commit

Permalink
chore: add github actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed May 18, 2023
1 parent ffa4ad2 commit 7edbdf9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci
on:
pull_request:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version-file: '.nvmrc'
- name: Install packages
run: yarn --immutable
- name: Build library
run: yarn build
unit:
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version-file: '.nvmrc'
- name: Install packages
run: yarn --immutable
- name: Jest
run: yarn test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14

0 comments on commit 7edbdf9

Please sign in to comment.