Skip to content

Commit

Permalink
ci(.github): adding a github actions to run testing in code
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneSemCalda committed Jan 26, 2024
1 parent a1dcdb3 commit 291ef41
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go Testing

on:
push:
branches: [ "master", "dev", "*" ]
pull_request:
branches: [ "master", "dev", "*" ]

jobs:

build:
name: Test Code
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.21.5
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Get dependencies
run: go get -v -t -d ./...

- name: Test
run: go test -v ./*/

0 comments on commit 291ef41

Please sign in to comment.