Skip to content

Commit

Permalink
chore: create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobPotter committed Nov 2, 2024
1 parent 1c48561 commit c2cec3d
Show file tree
Hide file tree
Showing 7 changed files with 527 additions and 28 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Build

on:
pull_request:
branches: [ "main" ]

jobs:

build-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
steps:
- uses: actions/checkout@v4

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

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

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

build-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4

- name: Setup npm
uses: actions/setup-node@v4.1.0
with:
node-version: 18.8.x

- name: Install
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm run test:browser



1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

.DS_Store
api/.idea/dataSources.xml
Loading

0 comments on commit c2cec3d

Please sign in to comment.