mirror of
https://github.com/sony/sonyflake.git
synced 2026-01-06 19:26:19 +00:00
25 lines
569 B
YAML
25 lines
569 B
YAML
on: [push, pull_request]
|
|
name: Test
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.23.x, 1.24.x]
|
|
os: [ubuntu-latest]
|
|
runs-on: ${{matrix.os}}
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{matrix.go-version}}
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: gofmt
|
|
run: test -z "`gofmt -l .`"
|
|
- name: golint
|
|
run: test -z "`golint ./...`"
|
|
- name: go test
|
|
run: go test -v ./...
|
|
- name: Build example
|
|
run: cd example && ./linux64_build.sh
|