Skip to content

debug: test sandbox #194

debug: test sandbox

debug: test sandbox #194

Workflow file for this run

on: [push, pull_request]
jobs:
cloudshell_open:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
docker system prune -a -f
df -h
- uses: actions/checkout@master
- uses: actions/setup-go@v1
with:
go-version: 1.14
- run: git config --global init.defaultBranch main # TODO remove later as git updates to a newer version
- run: go mod download
- name: Set up git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- name: Validate formatting with go fmt
run: diff -u <(echo -n) <(gofmt -d -s .)
working-directory: ./cmd/cloudshell_open
- name: Go tests
run: go test -v ./...
working-directory: ./cmd/cloudshell_open
- name: Build docker image
run: docker build -t runbutton .
redirector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v1
with:
go-version: 1.14
- run: go mod download
working-directory: ./cmd/redirector
- name: Validate formatting with go fmt
run: diff -u <(echo -n) <(gofmt -d -s .)
working-directory: ./cmd/redirector
- name: Go tests
run: go test -v ./...
working-directory: ./cmd/redirector
- name: Build docker image
run: docker build -t redirector .
working-directory: ./cmd/redirector