mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
23 lines
400 B
YAML
23 lines
400 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
build:
|
|
name: Running test
|
|
runs-on: ubuntu-latest
|
|
container: golang:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Get dependencies
|
|
run: go get -v -t -d ./...
|
|
- name: Run tests
|
|
run: go test main_test.go main.go
|