Skip to content

Commit

Permalink
Add Go workflow and update build workflow
Browse files Browse the repository at this point in the history
This commit adds a new Go workflow and updates the existing build workflow. The Go workflow includes steps for building the code and running tests, while the build workflow has been modified to only include the build step.
  • Loading branch information
SaadAhmedGit committed Dec 23, 2023
1 parent 0d11d31 commit 0e810e9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/test.yml → .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Go

on:
push:
Expand All @@ -8,6 +8,20 @@ on:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Build
run: go build ./cmd/formify/main.go

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -35,4 +49,4 @@ jobs:
TEST_DB_NAME: formify_test
TEST_DB_USER: gh_action_user
TEST_DB_PASSWORD: gh_action_user_password
run: go test -v ./tests/...
run: go test -v ./tests/...

0 comments on commit 0e810e9

Please sign in to comment.