Skip to content

Commit

Permalink
Add self test, drop external test trigger by push
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
shirok committed Jun 26, 2024
1 parent 58dcc0d commit 5c3bf34
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Trigger setup-gauche-tester

on: [ push, workflow_dispatch ]
on: [ workflow_dispatch ]

jobs:
trigger-tester:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Run setup-gauche action

on: [ push ]


# We don't use cross-matrix for platform and gauche-version, for
# we want to test specifically setup-gauche _without_ parameters
# and _with_ parameters.

jobs:
test-setup-latest:
strategy:
matrix:
platform: [ubuntu-latest, macos-12]
runs-on: ${{ matrix.platform }}
steps:
- uses: shirok/setup-gauche@main
- name: Run gosh
run: gosh -V

test-setup-snapshot:
strategy:
matrix:
platform: [ubuntu-latest, macos-12]
runs-on: ${{ matrix.platform }}
steps:
- uses: shirok/setup-gauche@main
with:
gauche-version: 'snapshot'
test-gauche: true
configure-options: '--with-slib=/opt'
- name: Run gosh
run: gosh -V

test-setup-binary:
runs-on: ubuntu-latest
steps:
- uses: shirok/setup-gauche@main
with:
prebuilt-binary: true
- name: Run gosh
run: gosh -V

0 comments on commit 5c3bf34

Please sign in to comment.