mirror of
https://github.com/lyx0/yaf.git
synced 2024-11-13 19:49:53 +01:00
ci: Add build and test workflow
This commit is contained in:
parent
153f64e07f
commit
667ea359ef
1 changed files with 33 additions and 0 deletions
33
.github/workflows/test.yml
vendored
Normal file
33
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go: [1.18, 1.19]
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
|
||||
- name: Build
|
||||
run: go build
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
Loading…
Reference in a new issue