Skip to content

Merge branch 'main' of https://github.com/compassedu/api #5

Merge branch 'main' of https://github.com/compassedu/api

Merge branch 'main' of https://github.com/compassedu/api #5

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build and Test Go Files
on:
push:
branches: [ "main" ]
paths:
- "**.go"
pull_request:
branches: [ "main" ]
paths:
- "**.go"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -v ./...
- name: Test
env:
GOPROXY: "https://proxy.golang.org"
COMPASS_SCHOOLID: ${{ secrets.COMPASS_SCHOOLID }}
COMPASS_USERNAME: ${{ secrets.COMPASS_USERNAME }}
COMPASS_PASSWORD: ${{ secrets.COMPASS_PASSWORD }}
run: go test