mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-12-23 08:46:25 +00:00
25 lines
442 B
YAML
25 lines
442 B
YAML
|
name: CI
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches: [master]
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '^1.21'
|
||
|
- run: go test -v ./...
|
||
|
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '^1.21'
|
||
|
- run: go build -v .
|