Skip to content

Commit cc8ccb0

Browse files
author
dedicatedbroadcastsolutions
committed
ci: add minimal GitHub Actions workflow
1 parent 986481e commit cc8ccb0

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- '**'
8+
pull_request:
9+
branches:
10+
- develop
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '20'
23+
24+
- name: Enable Corepack (Yarn v4)
25+
run: corepack enable
26+
27+
- name: Cache Yarn cache
28+
uses: actions/cache@v4
29+
with:
30+
path: |
31+
.yarn/cache
32+
.yarn/unplugged
33+
.yarn/build-state.yml
34+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
35+
36+
- name: Install dependencies
37+
run: yarn install --immutable
38+
39+
- name: Build TypeScript
40+
run: yarn build:ts
41+
42+
- name: Run tests
43+
run: yarn test

0 commit comments

Comments
 (0)