Bump the npm_and_yarn group across 1 directory with 2 updates #1858
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 Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'release/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - 'release/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| linters: | |
| name: Linters | |
| runs-on: ubuntu-noble-garm | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libbtrfs-dev build-essential apg jq | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| 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 | |
| run: | | |
| sudo apt-get install -y jq | |
| make verify | |
| go-tests: | |
| runs-on: ubuntu-noble-garm | |
| 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@v6 | |
| 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@v6 | |
| - name: Setup Golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - run: go version | |
| - name: Run go generate | |
| run: | | |
| make generate | |
| - name: Run GARM Go Tests | |
| run: make go-test | |
| - name: Run web UI tests | |
| run: | | |
| make webui-test | |
| go-tests-postgres: | |
| name: Go Tests (PostgreSQL) | |
| runs-on: ubuntu-noble-garm | |
| needs: [linters] | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: garm | |
| POSTGRES_PASSWORD: garmpassword | |
| POSTGRES_DB: garm | |
| ports: | |
| - 5432:5432 | |
| # Back the data directory with tmpfs (RAM). The test suite creates a | |
| # fresh schema and runs the full migration for every test case, so the | |
| # default disk-backed, fsync-on container makes the run slow enough to | |
| # hit the test timeout. This database is ephemeral, so trading | |
| # durability for speed is safe. | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| --tmpfs /var/lib/postgresql/data | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libbtrfs-dev build-essential | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Golang | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run GARM Go Tests (PostgreSQL) | |
| run: make go-test | |
| env: | |
| GARM_TEST_POSTGRES_DSN: "postgres://garm:garmpassword@localhost:5432/garm?sslmode=disable" |