Skip to content

Commit

Permalink
Merge pull request #19 from il-blood-donation-info/masayag-patch-4
Browse files Browse the repository at this point in the history
Update go.yml
  • Loading branch information
masayag authored Oct 29, 2023
2 parents 0b7b39d + 652f70d commit d4c1f1e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
name: Go

on:
[push, pull_request]
pull_request:
push:
branches:
- main

jobs:

Expand All @@ -14,23 +17,23 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build scraper
run: |
echo "Current directory: $(pwd)"
echo "Contents of current directory: $(ls)"
go env -w GO111MODULE=on
#export GOROOT=""
echo "GOROOT: $GOROOT"
GOROOT=$(go env GOROOT)
go build -v ./cmd/scraper
go env
go build -v -o bin/scraper ./cmd/scraper/main.go
- name: Build server
run: go build -v ./cmd/server
run: go build -v -o bin/server ./cmd/server/main.go

- name: Build cert
run: go build -v ./cmd/cert
run: go build -v -o bin/tls-self-signed-cert ./cmd/cert

# - name: Test
# run: go test -v ./...

0 comments on commit d4c1f1e

Please sign in to comment.