-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (40 loc) · 1.01 KB
/
lint_and_test.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
name: lint & test
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# pull_request:
# branches: [main]
push:
branches: [release]
paths:
- "scripts/**"
- "chezmoi/**"
- "rootmoi/**"
- "docs/install"
- ".github/workflows/lint_and_test.yaml"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
variant: [devcontainer, wsl, gnome]
os: [ubuntu-22.04]
# exclude:
include:
- variant: devcontainer
os: ubuntu-20.04
- variant: darwin
os: macos-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: install dependencies for MacOS
if: matrix.variant == 'darwin'
run: |
brew install coreutils
echo "$PWD"
- name: Run tests
run: |
scripts/test_for_ci.sh --variant "${{ matrix.variant }}" --os "${{ matrix.os }}"