Skip to content

Commit

Permalink
add tests for next (#1818)
Browse files Browse the repository at this point in the history
* add tests for next

* fix build
  • Loading branch information
motatoes authored Nov 12, 2024
1 parent 17e2d8c commit 6ea944a
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 18 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/next_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Next Go Tests

"on":
push:
branches: ['develop']
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Download Go
uses: actions/setup-go@v5
with:
go-version: 1.21.1
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Test that the docker image still builds successfully
run: |
export COMMIT_SHA=$(git rev-parse --short HEAD)
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_next
- name: Deps
run: go get -v ./...
working-directory: backend

- name: Build
run: go build
working-directory: backend

- name: Test
run: go test -v ./...
env:
GITHUB_PAT_TOKEN: ${{ secrets.TOKEN_GITHUB }}
working-directory: next
Loading

0 comments on commit 6ea944a

Please sign in to comment.