2021-08-26 19:21:33 +02:00
|
|
|
name: Sourcehut Build
|
|
|
|
|
2021-09-01 04:59:46 +02:00
|
|
|
# Skip pull requests as secrets are not available there.
|
|
|
|
on: push
|
2021-08-26 19:21:33 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2021-09-15 05:54:05 +02:00
|
|
|
if: github.repository_owner == 'hajimehoshi'
|
2021-08-26 19:21:33 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [alpine, arch, debian, fedora, ubuntu]
|
|
|
|
name: Test on ${{ matrix.os }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
SOURCEHUT_OAUTH_TOKEN: ${{ secrets.SOURCEHUT_OAUTH_TOKEN }}
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17.x
|
|
|
|
|
|
|
|
- name: Run
|
|
|
|
run: |
|
|
|
|
go run .github/workflows/sourcehutbuild.go \
|
2021-08-27 20:48:40 +02:00
|
|
|
-commit $GITHUB_SHA \
|
2021-08-26 19:21:33 +02:00
|
|
|
-manifest .github/workflows/sourcehutmanifests/${{ matrix.os }}.yml \
|
2021-08-27 20:48:40 +02:00
|
|
|
-note "$GITHUB_SHA (${{ matrix.os }})"
|