Skip to content

Merge pull request #141 from Tibz-Dankan/refactor/dir-structure #1

Merge pull request #141 from Tibz-Dankan/refactor/dir-structure

Merge pull request #141 from Tibz-Dankan/refactor/dir-structure #1

Workflow file for this run

name: Tests
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
APPCRONS_STAG_DSN: ${{ secrets.APPCRONS_STAG_DSN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"
- name: Install dependencies
run: make install
- name: Run tests
run: make stage # Runs tests in the staging environment
- name: Trigger deployment
if: success()
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/deploy-to-render.com.yml/dispatches \
-d '{"ref": "${{ github.ref_name }}"}'