test containers running on GitHub Actions #7
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: AllTests 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 |