Skip to content

Commit 590220a

Browse files
authored
Added tests github actions (#3)
* Added tests github actions * Fixing references
1 parent cbaf050 commit 590220a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
node-version: [16.x, 18.x]
16+
17+
name: Tests - Node ${{ matrix.node-version }}
18+
19+
steps:
20+
- name: Configure git for private modules
21+
env:
22+
GIT_AUTH_TOKEN: ${{ secrets.BOT_REPO_TOKEN }}
23+
run: git config --global url."https://speakeasybot:${GIT_AUTH_TOKEN}@github.com".insteadOf "https://github.com"
24+
25+
- name: Checkout the code
26+
uses: actions/checkout@v3
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: Install packages
34+
run: yarn install --frozen-lockfile
35+
36+
- name: Run tests
37+
run: yarn test

0 commit comments

Comments
 (0)