-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.25 KB
/
continuous-integration.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
name: Continuous Integration (CI)
on: pull_request
env:
# Forcing Earthly to use colours, to make reading output easier.
FORCE_COLOR: 1
jobs:
formatting:
name: Formatting
runs-on: ubuntu-latest
strategy:
matrix:
language: [shell]
steps:
- name: Download Earthly v0.8.12.
uses: earthly/actions-setup@v1
with:
version: v0.8.15
- name: Checkout code.
uses: actions/checkout@v4
- name: Check formatting.
run: earthly --ci +check-${{ matrix.language }}-formatting
linting:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
language: [shell]
steps:
- name: Download Earthly v0.8.12.
uses: earthly/actions-setup@v1
with:
version: v0.8.15
- name: Checkout code.
uses: actions/checkout@v4
- name: Check linting.
run: earthly --ci +check-${{ matrix.language }}-linting
e2e-test:
name: End to End Test
runs-on: ubuntu-latest
steps:
- name: Download Earthly v0.8.12.
uses: earthly/actions-setup@v1
with:
version: v0.8.15
- name: Checkout code.
uses: actions/checkout@v4
- name: End to end test.
run: earthly --ci +e2e-test