-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial GitHub Actions setup for Go testing
- Loading branch information
1 parent
0f9e08c
commit c6b70e6
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Go Test Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Run Go Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.20 | ||
|
||
- name: Check dependencies | ||
run: go mod tidy | ||
|
||
- name: Run tests | ||
env: | ||
SUPABASE_URI: ${{ secrets.SUPABASE_URI }} | ||
SECRET_KEY: ${{ secrets.SECRET_KEY }} | ||
ENV: ${{ secrets.ENV }} | ||
CLIENT_URL: ${{ secrets.CLIENT_URL }} | ||
EMAIL: ${{ secrets.EMAIL }} | ||
EMAIL_APP_PASSWORD: ${{ secrets.EMAIL_APP_PASSWORD }} | ||
TEST_EMAIL: ${{ secrets.TEST_EMAIL }} | ||
run: go test ./... -v |