Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Add GitHub actions (#1)
Browse files Browse the repository at this point in the history
* Create main.yml

* Add action to install Taskfile

* Up Go to 1.23

* Get rid of Taskfile in CI/CD
  • Loading branch information
tomakado authored Feb 9, 2025
1 parent 24934ba commit 9158624
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
pull_request: {}
push:
branches:
- main

jobs:
checks:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v3

- name: setup-go
uses: actions/setup-go@v5
with:
go-version: '1.23'

- name: unit-tests
run: |
go test ./... -coverprofile=coverage.out
cat coverage.out | grep -v "query/parser.gen.go" > coverage_filtered.out
go tool cover -func=coverage_filtered.out
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.0

0 comments on commit 9158624

Please sign in to comment.