Skip to content

Commit

Permalink
feat: add initial CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoheikkila committed May 13, 2024
1 parent 40d281d commit 0d68e01
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI/CD

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: read
pull-requests: read
checks: write

jobs:

test:
name: Acceptance Tests
strategy:
matrix:
go: [1.21, 1.22]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

- name: Install dependencies
run: go mod download

- name: Run static analysis
uses: golangci/golangci-lint-action@v5
with:
version: v1.57

- name: Run unit tests
run: go test -v ./...

0 comments on commit 0d68e01

Please sign in to comment.