update gh action versions #528
Workflow file for this run
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: 🔨 Build Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Test Builds | |
runs-on: ubuntu-latest | |
services: | |
gotify: | |
image: ghcr.io/gotify/server | |
ports: | |
- 80:80 | |
options: >- | |
-v /var/gotify/data:/app/data | |
--name gotify | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.x | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Test | |
run: go test . | |
working-directory: cmd/notify/ | |
- name: Build | |
run: go build . | |
working-directory: cmd/notify/ | |
- name: Integration Tests | |
env: | |
DISCORD_WEBHOOK_URL: "${{ secrets.DISCORD_WEBHOOK_URL }}" | |
SLACK_WEBHOOK_URL: "${{ secrets.SLACK_WEBHOOK_URL }}" | |
CUSTOM_WEBHOOK_URL: "${{ secrets.CUSTOM_WEBHOOK_URL }}" | |
run: | | |
if [ "$GITHUB_ACTOR" == "dependabot[bot]" ]; then | |
export DEPENDABOT=true | |
fi | |
chmod +x gotify.sh | |
chmod +x action-run.sh | |
bash action-run.sh | |
working-directory: cmd/integration-test/ |