From 0ff0ff0cc4b8ff43158e1cfa7c4aab8ec6df5c82 Mon Sep 17 00:00:00 2001 From: TaktischerSpeck Date: Fri, 20 Oct 2023 23:15:18 +0200 Subject: [PATCH] Update semaphore.yml --- .github/workflows/semaphore.yml | 49 --------------------------------- 1 file changed, 49 deletions(-) diff --git a/.github/workflows/semaphore.yml b/.github/workflows/semaphore.yml index b73fbc1..8b13789 100644 --- a/.github/workflows/semaphore.yml +++ b/.github/workflows/semaphore.yml @@ -1,50 +1 @@ -version: v1.0 -name: Go project example -agent: - machine: - type: e1-standard-2 - os_image: ubuntu1804 -blocks: - - name: Build project - task: - jobs: - - name: Get Go packages - commands: - - checkout - - sem-version go 1.12 - - go get github.com/lib/pq - - go build webServer.go - - mkdir bin - - mv webServer bin - - cache store $(checksum webServer.go) bin - - - name: Check code style - task: - jobs: - - name: gofmt - commands: - - checkout - - sem-version go 1.12 - - yes | sudo apt install gccgo-go - - gofmt webServer.go | diff --ignore-tab-expansion webServer.go - - - - name: Smoke tests - task: - jobs: - - name: go test - commands: - - checkout - - sem-version go 1.12 - - sem-service start postgres - - psql -p 5432 -h localhost -U postgres -c "CREATE DATABASE s2" - - go get github.com/lib/pq - - go test ./... -v - - - name: Test Web Server - commands: - - checkout - - sem-version go 1.12 - - cache restore $(checksum webServer.go) - - ./bin/webServer 8001 & - - curl --silent localhost:8001/time | grep "The current time is"