Skip to content

Commit

Permalink
build: run tests on push and pr
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinoko-kun committed Sep 28, 2024
1 parent c57f907 commit 3cf65cb
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# yaml-language-server: https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: goreleaser

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test-mac:
runs-on: macos-latest
steps:
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: stable
cache: true
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: go build ./...
- name: Test
run: go test ./... -v
test-win:
runs-on: windows-latest
steps:
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: stable
cache: true
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: go build ./...
- name: Test
run: go test ./... -v
test-linux:
runs-on: ubuntu-latest
steps:
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: stable
cache: true
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: go build ./...
- name: Test
run: go test ./... -v

0 comments on commit 3cf65cb

Please sign in to comment.