mirror of
https://github.com/ribbybibby/ssl_exporter.git
synced 2026-02-14 17:49:58 +00:00
49 lines
880 B
YAML
49 lines
880 B
YAML
name: test-and-snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.22.x
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
snapshot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Qemu
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.22.x
|
|
|
|
- name: Build release snapshot
|
|
run: make snapshot
|
|
|
|
- name: Archive release snapshot
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release-snapshot
|
|
path: |
|
|
bin/*.tar.gz
|
|
bin/*.txt
|
|
bin/*.yaml
|