-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (63 loc) · 1.45 KB
/
validate.yml
File metadata and controls
67 lines (63 loc) · 1.45 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
name: validate
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: build-${{ github.head_ref }}
cancel-in-progress: true
jobs:
install-lint-test:
strategy:
matrix:
os: [macos-14, macos-13, ubuntu-24.04, linux-arm64-runner]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: install
uses: ./.github/workflows/reusable/cached-install
- name: lint
run:
./lint.sh
shell: bash
- name: test
run:
./test.sh
shell: bash
# lint:
# needs: install
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: install
# uses: ./.github/workflows/reusable/cached-install
# - name: lint
# run:
# ./lint.sh
# shell: bash
# test:
# needs: install
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: install
# uses: ./.github/workflows/reusable/cached-install
# - name: test
# run:
# ./test.sh
# shell: bash