-
-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (46 loc) · 1.11 KB
/
test.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
55
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu
os: ubuntu-latest
- name: "Arch Linux"
os: ubuntu-latest
container: archlinux:base-devel
- name: macOS
os: macos-latest
defaults:
run:
shell: bash
steps:
- name: Install APT dependencies
if: matrix.name == 'Ubuntu'
run: |
sudo apt-get install -y git build-essential
- name: Install pacman dependencies
if: matrix.name == 'Arch Linux'
run: |
pacman -Syu --noconfirm
pacman -S git --noconfirm
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install packages
run: |
NOCONFIRM=true ./install-packages.sh
- name: Set up dotfiles
run: |
NOCONFIRM=true ./setup.sh