Skip to content

Test containers running on GitHub Actions #17

Test containers running on GitHub Actions

Test containers running on GitHub Actions #17

Workflow file for this run

name: All tests action
run-name: Test containers running on GitHub Actions
on:
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