2021-12-22 13:39:01 +00:00
|
|
|
name: tests
|
2021-12-16 08:58:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-12-16 11:25:53 +00:00
|
|
|
- 'main'
|
2021-12-16 08:58:37 +00:00
|
|
|
pull_request:
|
|
|
|
|
2022-10-31 01:17:17 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2021-12-16 08:58:37 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Running test
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-16 09:01:22 +00:00
|
|
|
container: golang:latest
|
2021-12-16 08:58:37 +00:00
|
|
|
steps:
|
2024-08-04 15:49:12 +00:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-16 08:58:37 +00:00
|
|
|
- name: Get dependencies
|
|
|
|
run: go get -v -t -d ./...
|
|
|
|
- name: Run tests
|
2023-02-26 00:34:02 +00:00
|
|
|
run: go test main_test.go main.go
|