-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (64 loc) · 1.67 KB
/
ci.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
pull_request:
paths:
- .sbtopts
- build.sbt
- project/**
- compiler/**
- snapi-frontend/**
- snapi-truffle/**
- snapi-compiler/**
- python-compiler/**
- sql-compiler/**
- .github/workflows/ci.yaml
- ci/**
workflow_dispatch:
defaults:
run:
shell: bash
env:
SBT_OPTS : -Dsbt.log.noformat=true -Xss2m -Xms1g
GITHUB_TOKEN: ${{ secrets.READ_PACKAGES }}
jobs:
code-checks:
runs-on: [self-hosted,snapi]
steps:
- uses: actions/checkout@v4
- run: ./ci/check headerCheckAll
- run: ./ci/check scalafmtCheckAll
- run: ./ci/check javafmtCheckAll
doc:
runs-on: [self-hosted,snapi]
steps:
- uses: actions/checkout@v4
- name: Ensure ANTLR JAR is present
uses: ./.github/actions/get-antlr4
- run: ./ci/check doc
tests:
strategy:
fail-fast: false
matrix:
component:
- snapi-frontend
- snapi-compiler
- sql-compiler
- python-compiler
runs-on: [self-hosted,snapi]
steps:
- uses: actions/checkout@v4
- uses: oNaiPs/secrets-to-env-action@v1.5
with:
secrets: ${{ toJSON(secrets) }}
- run: env > .env
- name: Ensure ANTLR JAR is present
uses: ./.github/actions/get-antlr4
- run: ./ci/test ${{ matrix.component }}
- uses: mikepenz/action-junit-report@v4
if: success() || failure()
with:
annotate_only: true
check_name: JUnit ${{ matrix.component }} report
report_paths: ${{ matrix.component }}/target/test-reports/*.xml
detailed_summary: true
require_tests: true