Skip to content

Commit

Permalink
feat/fix: Update GitHub Actions workflow file for
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 28, 2024
1 parent bc083ad commit 5cddd5f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions golang/go-guestbook/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration

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

jobs:
build:
runs-on: ubuntu-latest

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

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16'

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

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

- name: Publish artifacts
uses: actions/upload-artifact@v2
with:
name: go-guestbook-artifacts
path: |
go-guestbook/bin/

0 comments on commit 5cddd5f

Please sign in to comment.