Skip to content

Commit 3a5cbe3

Browse files
committed
feat(tests): Move from Circle to GitHub Actions
1 parent a8159e9 commit 3a5cbe3

File tree

2 files changed

+34
-27
lines changed

2 files changed

+34
-27
lines changed

.circleci/config.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Test"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: volta-cli/action@v4
14+
15+
- uses: actions/cache/restore@v3
16+
with:
17+
key: npm-dependency-cache-${{hashfiles(package-lock.json)}}
18+
path: ./node_modules
19+
20+
- run:
21+
name: Install Dependencies
22+
command: |
23+
npm ci
24+
25+
- uses: actions/cache/save@v3
26+
with:
27+
key: npm-dependency-cache-${{hashfiles(package-lock.json)}}
28+
path: ./node_modules
29+
if: always()
30+
31+
- run:
32+
name: Run Tests
33+
command: |
34+
npm run test

0 commit comments

Comments
 (0)