Skip to content

Commit a9521bc

Browse files
authored
chore: Workflow for testing
1 parent c134ac2 commit a9521bc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Test
2+
run-name: Testing out changes 🚀
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build_and_test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node: [10, 12]
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install package
25+
run: npm install
26+
- name: Link step 1
27+
run: npm link
28+
- name: Link step 2
29+
run: cd testing-app
30+
- name: Link step 3
31+
run: npm link @ryfylke-react/rtk-query-loader
32+
- name: Install testing-app
33+
run: npm install
34+
- name: Build the project
35+
run: npm run build --if-present
36+
- name: Run tests
37+
run: npm test

0 commit comments

Comments
 (0)