-
Notifications
You must be signed in to change notification settings - Fork 17
54 lines (44 loc) · 1.27 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI Workflow
on:
pull_request:
branches: [main]
types: [review_requested, ready_for_review]
paths:
- transpiler/**
jobs:
test:
name: Build and Test transpiler
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: '☁️ checkout repository'
uses: actions/checkout@v2
- name: '🔧 setup node'
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Antlr
run: |
cd /usr/local/lib
sudo curl -O https://www.antlr.org/download/antlr-4.10.1-complete.jar
- name: yarn install
working-directory: ./transpiler
run: yarn install --frozen-lockfile
# - name: make antlr jar executable
# run: chmod +x antlr-4.10.1-complete.jar
- name: 'Produce Antlr files'
working-directory: ./transpiler
run: npm run ant
- name: 'Build'
working-directory: ./transpiler
run: npm run build
- name: '🔍 run tests'
working-directory: ./transpiler
env:
NODE_OPTIONS: '--max_old_space_size=4096'
run: yarn test:swc --silent