From 577177572815ceb2399428974caffd65977ed8bd Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Thu, 12 Mar 2020 15:12:31 +0100 Subject: [PATCH 1/3] Setup CI --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0d5b74c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,6 @@ +steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2-beta + with: + go-version: "^1.13.1" # The Go version to download (if necessary) and use. + - run: go version && GO111MODULE=on go build -o onyxia-cli main.go From 0108a7fb1ff4c2024aa4a8efa6249d0f5a948a20 Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Thu, 12 Mar 2020 15:16:25 +0100 Subject: [PATCH 2/3] On push / pull_request --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d5b74c..c6d7d6d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,5 @@ +on: [push, pull_request] + steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2-beta From 5386e85d5d0428a007acbfbe651ead53d95563e6 Mon Sep 17 00:00:00 2001 From: Olivier Levitt Date: Thu, 12 Mar 2020 15:18:10 +0100 Subject: [PATCH 3/3] Let's go --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6d7d6d..4368a52 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,11 @@ on: [push, pull_request] -steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta - with: - go-version: "^1.13.1" # The Go version to download (if necessary) and use. - - run: go version && GO111MODULE=on go build -o onyxia-cli main.go +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2-beta + with: + go-version: "^1.13.1" # The Go version to download (if necessary) and use. + - run: go version && GO111MODULE=on go build -o onyxia-cli main.go