-
Notifications
You must be signed in to change notification settings - Fork 60
32 lines (32 loc) · 1.05 KB
/
pr.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
name: pr
on:
pull_request
jobs:
lint:
name: Check that it conforms to the style guide
runs-on: ubuntu-20.04
steps:
- name: Checkout the Git repository
uses: actions/checkout@v3
- name: Setup Toltec dependencies
uses: ./.github/actions/setup
- name: Check formatting
run: make format
- name: Check for erroneous constructs
run: make lint
pr:
name: Check that it builds without error
runs-on: ubuntu-20.04
needs: lint
steps:
- name: Checkout the Git repository
uses: actions/checkout@v3
- name: Setup Toltec dependencies
uses: ./.github/actions/setup
- name: Build packages
run: make repo-new FLAGS='--remote-repo https://toltec-dev.org/${{ github.base_ref }}'
- name: Save the build output
uses: actions/upload-artifact@v3
with:
name: repo
path: build/repo