Skip to content

Commit

Permalink
Merge pull request #20 from Cherry/feat/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry authored Mar 26, 2024
2 parents aafabe6 + 8aac2c3 commit 29ecb84
Show file tree
Hide file tree
Showing 19 changed files with 2,844 additions and 667 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
# always run in pull request, or repository_dispatch
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'repository_dispatch'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Restore NPM cache
uses: actions/cache@v3
uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.npm
Expand All @@ -28,7 +28,8 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm test
- run: npm run lint
- run: npm run test

deploy:
runs-on: ubuntu-latest
Expand All @@ -37,13 +38,13 @@ jobs:
# only run if in main
if: github.ref == 'refs/heads/main' && (github.event_name == 'repository_dispatch' || github.event_name == 'push')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Restore NPM cache
uses: actions/cache@v3
uses: actions/cache@v4
continue-on-error: true
with:
path: ~/.npm
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ node_modules/
.cargo-ok
.env
.mf
test
Loading

0 comments on commit 29ecb84

Please sign in to comment.