Skip to content

Commit

Permalink
Github: Run Test workflow on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pier-oliviert committed Sep 18, 2024
1 parent 10e96ab commit 342936d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Main Workflows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
tests:
name: Test Suite
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4

- name: Setup
uses: actions/setup-go@v5
with:
go-version: '1.22.x'

- name: Dependencies
run: go get .

- name: Build
run: go build -v ./...

- name: Test
run: go test

0 comments on commit 342936d

Please sign in to comment.