Skip to content

Commit

Permalink
Add backend CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuflatland-lf committed Jul 3, 2024
1 parent cb49a40 commit 1334f09
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: flamingo-armond backend CI

on:
push:
branches:
- master

paths:
- 'backend/**'
jobs:
backend:
name: backend CI
runs-on: ubuntu-22.04
environment: Test
steps:
- name: Set up Go 1.22.5
uses: actions/setup-go@v5
with:
go-version: '1.22.5'

- name: Checkout code
uses: actions/checkout@v4

- name: Install Goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest

- name: Fetch dependant Go modules
run: |-
go get -v -t -d ./...
working-directory: ./backend

- name: Test code
run: |-
go test -v ./...
working-directory: ./backend
1 change: 1 addition & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
frontend:
name: frontend CI
runs-on: ubuntu-22.04
environment: Test
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ CREATE TABLE todos
-- SQL section 'Down' is executed when this migration is rolled back.

DROP TABLE IF EXISTS todos;

DROP TABLE IF EXISTS users;

0 comments on commit 1334f09

Please sign in to comment.