Skip to content

Commit

Permalink
acceptance test runs on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
theoremoon committed Apr 1, 2024
1 parent 1a5b343 commit 21bfce5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main

permissions:
contents: read
Expand All @@ -26,5 +29,5 @@ jobs:
- run: go mod download
- run: go test -v -cover ./...
env:
TF_ACC: "1"
TF_ACC: ${{ github.ref == 'refs/heads/main' && '1' || '' }}
TF_VAR_HATENABLOG_APIKEY: ${{ secrets.HATENABLOG_APIKEY }}

0 comments on commit 21bfce5

Please sign in to comment.