Skip to content

Commit 3e4ec70

Browse files
authored
chore: migrate circleci workflow to github actions (#277)
1 parent 412fa94 commit 3e4ec70

File tree

2 files changed

+39
-77
lines changed

2 files changed

+39
-77
lines changed

.circleci/config.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/test-monorepo.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test monorepo
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
test-monorepo:
9+
name: Test monorepo
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v3
14+
15+
- name: Install node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 16.13.x
19+
cache: yarn
20+
21+
- name: Restore dependencies
22+
id: yarn-cache
23+
uses: actions/cache@v3
24+
with:
25+
path: '**/node_modules'
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
28+
- name: Install dependencies
29+
if: steps.yarn-cache.outputs.cache-hit != 'true'
30+
run: yarn install --frozen-lockfile
31+
32+
- name: Lint files
33+
run: yarn lint
34+
35+
- name: Build packages in the monorepo
36+
run: yarn lerna run prepare
37+
38+
- name: Typecheck files
39+
run: yarn typescript

0 commit comments

Comments
 (0)