mirror of
https://github.com/fosrl/newt.git
synced 2026-02-12 07:56:42 +00:00
Create test.yml
This commit is contained in:
34
.github/workflows/test.yml
vendored
Normal file
34
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Run Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.20'
|
||||
|
||||
- name: Build
|
||||
run: go build
|
||||
|
||||
- name: Test
|
||||
run: go test
|
||||
|
||||
- name: Build Docker container
|
||||
run: make build
|
||||
|
||||
- name: Run Docker container
|
||||
run: make test
|
||||
|
||||
- name: Build native
|
||||
run: make go-build.release
|
||||
Reference in New Issue
Block a user