Skip to content

Commit 8b9d4e3

Browse files
committed
try to set up GitHub actions workflow
1 parent 04819ad commit 8b9d4e3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
build-and-test:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Node.js environment
27+
uses: actions/[email protected]
28+
with:
29+
node-version: 20.x
30+
cache: yarn
31+
cache-dependency-path: yarn.lock
32+
33+
- name: Install dependencies
34+
run: yarn
35+
36+
- name: Log Versions
37+
run: yarn tsc --version && yarn mocha --version
38+
39+
- name: Type Check
40+
run: yarn tsc
41+
42+
- name: Unit tests
43+
run: yarn test

0 commit comments

Comments
 (0)