Skip to content

test containers running on GitHub Actions #8

test containers running on GitHub Actions

test containers running on GitHub Actions #8

Workflow file for this run

name: All Tests Action
run-name: test containers running on GitHub Actions
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
backend-tests:
runs-on: ubuntu-latest
steps:
- run: echo "Starting backend tests"
- name: Checkout repo code
uses: actions/checkout@v4
- name: Setup Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22.1"
- name: Run all tests
env:
TEST_DB_NAME: goalify_test
DB_USER: goalify
DB_PASSWORD: goalify
JWT_SECRET: somesecret
PORT: 8080
CI: "true"
run: |
cd backend
go mod download
make test