Skip to content

SpaceCloud is now in maintenance mode #2964

SpaceCloud is now in maintenance mode

SpaceCloud is now in maintenance mode #2964

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
gateway:
name: Build and test gateway
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Cache Go Modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: cd gateway && go build -v .
- name: Test
run: cd gateway && go test ./...
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.26.0
sudo cp ./bin/golangci-lint $GOPATH/bin/
cd gateway && golangci-lint run -E golint --exclude-use-default=false --timeout 600s ./...
runner:
name: Build and test Runner
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Cache Go Modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: cd runner && go build -v .
- name: Test
run: cd runner && go test ./...
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.26.0
sudo cp ./bin/golangci-lint $GOPATH/bin/
cd runner && golangci-lint run -E golint --exclude-use-default=false --timeout 180s ./...
cli:
name: Build and test space cli
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Cache Go Modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: cd space-cli && go build -v .
- name: Test
run: cd space-cli && go test ./...
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.26.0
sudo cp ./bin/golangci-lint $GOPATH/bin/
cd space-cli && golangci-lint run -E golint --exclude-use-default=false --timeout 180s ./...