Skip to content

Commit

Permalink
Merge pull request #8 from glokta1/build-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
championswimmer authored Nov 4, 2023
2 parents f0de00e + ab2d1b5 commit fc1a6a5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and test

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

jobs:
build:
runs-on: ubuntu-latest

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'

- name: Install dependencies
run: go get .

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

test:
runs-on: ubuntu-latest

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20.x'

- name: Install dependencies
run: go get .

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

0 comments on commit fc1a6a5

Please sign in to comment.