menu #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go Unit Test | |
on: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.4 | |
- name: Install Go Dependencies | |
run: go mod tidy | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.12.0 | |
- name: Install JS Dependencies | |
run: npm install --prefix frontend | |
- name: Build Frontend to be embedded | |
run: npm run build --prefix frontend | |
- name: Run tests | |
run: go test -v -cover ./... |