Update test workflow
Add steps to test the Web UI and to run go generate. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
8d5c6b6738
commit
54c6571ccd
56 changed files with 84 additions and 164 deletions
31
.github/workflows/go-tests.yml
vendored
31
.github/workflows/go-tests.yml
vendored
|
|
@ -28,10 +28,11 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y libbtrfs-dev build-essential apg jq
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '^1.22.3'
|
||||
- uses: actions/checkout@v3
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: make lint
|
||||
run: make golangci-lint && GOLANGCI_LINT_EXTRA_ARGS="--timeout=8m --build-tags=testing,integration" make lint
|
||||
- name: Verify go vendor, go modules and gofmt
|
||||
|
|
@ -43,15 +44,39 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [linters]
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libbtrfs-dev build-essential apg jq default-jre
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '>=v24.5.0'
|
||||
|
||||
- name: Set up openapi-generator-cli
|
||||
run: |
|
||||
mkdir -p $HOME/openapi-generator
|
||||
cd $HOME/openapi-generator
|
||||
npm install @openapitools/openapi-generator-cli
|
||||
echo "$HOME/openapi-generator/node_modules/.bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Golang
|
||||
uses: actions/setup-go@v3
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- run: go version
|
||||
|
||||
- name: Run go generate
|
||||
run: |
|
||||
GOTOOLCHAIN=go1.24.6 make generate
|
||||
|
||||
- name: Run GARM Go Tests
|
||||
run: make go-test
|
||||
|
||||
- name: Run web UI tests
|
||||
run: |
|
||||
make webui-test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue