Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Feb 27, 2024
1 parent 9c36c2a commit 74bb88c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: test

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: '^1.22'

- name: get build tools
run: sudo apt-get -y install build-essential

- name: test build
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

- name: test
run: GOFLAGS="-count=1" go test -race -covermode=atomic ./...

0 comments on commit 74bb88c

Please sign in to comment.