-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.23 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
name: CI
on:
push:
branches: [main]
paths-ignore: ["**.md"]
pull_request:
branches: [main]
paths-ignore: ["**.md"]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
HOMEBREW_CACHE: /home/runner/.cache/Homebrew
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up repo
uses: actions/checkout@v4
- name: Set up cache
uses: actions/cache@v4
with:
path: ${{ env.HOMEBREW_CACHE }}
key: ${{ runner.os }}-brew-1
restore-keys: ${{ runner.os }}-brew-1
- name: Set up Homebrew
run: echo /home/linuxbrew/.linuxbrew/bin >> $GITHUB_PATH
- name: Install deps
run: brew install fish
- name: Lint
uses: pre-commit/[email protected]
bootstrap:
runs-on: ${{ matrix.os }}-latest
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
include:
- os: macos
- os: ubuntu
- os: ubuntu
container: alpine
steps:
- run: apk add bash curl git
if: matrix.container == 'alpine'
- run: curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/bootstrap | HOME=$PWD/tmp bash