Skip to content

Commit e711362

Browse files
committed
chore: add github test workflow
1 parent 1a837c5 commit e711362

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: tests
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the main branch
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
test:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-18.04
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
with:
25+
submodules: true
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v1
29+
with:
30+
node-version: '14.x'
31+
32+
- name: Install PNPM
33+
run: npm install -g pnpm
34+
35+
- name: Install Dependencies
36+
run: pnpm i
37+
38+
- name: Test
39+
run: pnpm test

0 commit comments

Comments
 (0)