Skip to content

Commit 5c3bf34

Browse files
committed
Add self test, drop external test trigger by push
Triggering external repo's test requires to maintain auth token. We might want to run it occasionally, but it doesn't need to be on every push. So we run test inside repo on push. External repo test can be manually triggered when necessary.
1 parent 58dcc0d commit 5c3bf34

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Trigger setup-gauche-tester
22

3-
on: [ push, workflow_dispatch ]
3+
on: [ workflow_dispatch ]
44

55
jobs:
66
trigger-tester:

.github/workflows/self-test.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Run setup-gauche action
2+
3+
on: [ push ]
4+
5+
6+
# We don't use cross-matrix for platform and gauche-version, for
7+
# we want to test specifically setup-gauche _without_ parameters
8+
# and _with_ parameters.
9+
10+
jobs:
11+
test-setup-latest:
12+
strategy:
13+
matrix:
14+
platform: [ubuntu-latest, macos-12]
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- uses: shirok/setup-gauche@main
18+
- name: Run gosh
19+
run: gosh -V
20+
21+
test-setup-snapshot:
22+
strategy:
23+
matrix:
24+
platform: [ubuntu-latest, macos-12]
25+
runs-on: ${{ matrix.platform }}
26+
steps:
27+
- uses: shirok/setup-gauche@main
28+
with:
29+
gauche-version: 'snapshot'
30+
test-gauche: true
31+
configure-options: '--with-slib=/opt'
32+
- name: Run gosh
33+
run: gosh -V
34+
35+
test-setup-binary:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: shirok/setup-gauche@main
39+
with:
40+
prebuilt-binary: true
41+
- name: Run gosh
42+
run: gosh -V

0 commit comments

Comments
 (0)