Skip to content

Commit

Permalink
Initial GitHub Actions setup for Go testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingertips18 committed Sep 11, 2024
1 parent 0f9e08c commit c6b70e6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/go-test.yaml
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

0 comments on commit c6b70e6

Please sign in to comment.