Bump the npm-deps group across 1 directory with 15 updates #781
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
POSTGRES_DB: backupdatabase | |
POSTGRES_USER: backupuser | |
POSTGRES_PASSWORD: backupuserpassword | |
POSTGRES_PORT: 5432 | |
services: | |
postgres: | |
image: postgres | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_DB: backupdatabase | |
POSTGRES_USER: backupuser | |
POSTGRES_PASSWORD: backupuserpassword | |
POSTGRES_PORT: 5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Install Flyway | |
run: wget -qO- https://download.red-gate.com/maven/release/com/redgate/flyway/flyway-commandline/10.0.0/flyway-commandline-10.0.0-linux-x64.tar.gz | tar xvz && sudo ln -s `pwd`/flyway-10.0.0/flyway /usr/local/bin | |
- name: DB Migration | |
run: flyway migrate -url=jdbc:postgresql://$POSTGRES_HOST:$POSTGRES_PORT/$POSTGRES_DB -user=$POSTGRES_USER -password=$POSTGRES_PASSWORD -locations=filesystem:./resources/migrations | |
- name: Set up Go ^1.22 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ^1.22 | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Set fake google default credentials | |
run: | | |
echo "GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/resources/credentials/fake-service-account.json" >> $GITHUB_ENV | |
- name: Test | |
run: | | |
set -o pipefail | |
mkdir output | |
go test -v -p 1 ./... | tee output/tmp-test-output.txt | |
- name: Testing Report | |
if: always() | |
run: ./.github/scripts/report.sh output/tmp-test-output.txt | |
- name: Build | |
run: go build -v ./... | |
- name: Static Folder Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: static-folder | |
path: static |