-
Notifications
You must be signed in to change notification settings - Fork 3
93 lines (80 loc) · 2.39 KB
/
test-many.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: test-many
on:
pull_request:
branches:
- '*'
defaults:
run:
shell: bash
jobs:
# ..........................................................................
wait-build:
runs-on: ubuntu-latest
steps:
- name: Wait for build to finish
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
repo-token: ${{ secrets.AUTH_TOKEN }}
wait-interval: 20
running-workflow-name: wait-build
allowed-conclusions: success,skipped,neutral
# ..........................................................................
on-linux:
runs-on: ubuntu-latest
needs: wait-build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare and run tests
uses: ./.github/actions/run-test
with:
sha: ${{ github.sha }}
os: ubuntu-latest
github-token: ${{ secrets.AUTH_TOKEN }}
# ..........................................................................
on-macos:
runs-on: macos-latest
needs: on-linux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare and run tests
uses: ./.github/actions/run-test
with:
sha: ${{ github.sha }}
os: macos-latest
github-token: ${{ secrets.AUTH_TOKEN }}
# ..........................................................................
on-windows:
runs-on: windows-latest
needs: on-macos
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare and run tests
uses: ./.github/actions/run-test
with:
sha: ${{ github.sha }}
os: windows-latest
github-token: ${{ secrets.AUTH_TOKEN }}
# ..........................................................................
on-docker:
runs-on: ubuntu-latest
needs: on-windows
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build image
run: docker build -t lgs .
- name: Run and update
run: |
docker run \
--rm \
-e GITHUB_TOKEN="$GITHUB_TOKEN" \
lgs >> my-github-stars.md
gh gist edit ada2117bd8c73a1e94e49580fd5c7cf7 --add my-github-stars.md
env:
GITHUB_TOKEN: ${{ secrets.AUTH_TOKEN }}