Merge pull request #141 from Tibz-Dankan/refactor/dir-structure #1
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: 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 }}"}' |