From 213e3028f44f5433b23334a9e3f8b2e4fa6c8636 Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Tue, 6 Oct 2020 00:29:26 +0900 Subject: [PATCH] setup CI --- .github/workflows/build-on-linux.yml | 21 +++++++++++++++++++++ .github/workflows/build-on-mac.yml | 21 +++++++++++++++++++++ .github/workflows/build-on-windows.yml | 21 +++++++++++++++++++++ .gitignore | 8 +++----- README.md | 3 +++ 5 files changed, 69 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build-on-linux.yml create mode 100644 .github/workflows/build-on-mac.yml create mode 100644 .github/workflows/build-on-windows.yml diff --git a/.github/workflows/build-on-linux.yml b/.github/workflows/build-on-linux.yml new file mode 100644 index 0000000..fcee0f3 --- /dev/null +++ b/.github/workflows/build-on-linux.yml @@ -0,0 +1,21 @@ +name: Build on Linux + +on: + push: + branches-ignore: + - dependabot/** + pull_request: + branches: + - magistra + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '> 1.15.0' + - uses: actions/setup-node@v2 + - name: Build + run: npm run build diff --git a/.github/workflows/build-on-mac.yml b/.github/workflows/build-on-mac.yml new file mode 100644 index 0000000..db0af83 --- /dev/null +++ b/.github/workflows/build-on-mac.yml @@ -0,0 +1,21 @@ +name: Build on macOS + +on: + push: + branches-ignore: + - dependabot/** + pull_request: + branches: + - magistra + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '> 1.15.0' + - uses: actions/setup-node@v2 + - name: Build + run: npm run build diff --git a/.github/workflows/build-on-windows.yml b/.github/workflows/build-on-windows.yml new file mode 100644 index 0000000..8f93d7f --- /dev/null +++ b/.github/workflows/build-on-windows.yml @@ -0,0 +1,21 @@ +name: Build on Windows + +on: + push: + branches-ignore: + - dependabot/** + pull_request: + branches: + - magistra + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '> 1.15.0' + - uses: actions/setup-node@v2 + - name: Build + run: npm run build diff --git a/.gitignore b/.gitignore index d0ac65d..cbebfb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,7 @@ -.* -!.gitignore -**/*.gen.go *.gen.go -.idea/ -node_modules/ +/.idea/ +/.bin/ +/node_modules/ _shelf/ _cache/ diff --git a/README.md b/README.md index f6d3e76..7911160 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![Build on Linux](https://github.com/fairy-rockets/the-gear-of-seasons/workflows/Build%20on%20Linux/badge.svg)](https://github.com/fairy-rockets/the-gear-of-seasons/actions?query=workflow%3A%22Build+on+Linux%22) +[![Build on macOS](https://github.com/fairy-rockets/the-gear-of-seasons/workflows/Build%20on%20macOS/badge.svg)](https://github.com/fairy-rockets/the-gear-of-seasons/actions?query=workflow%3A%22Build+on+macOS%22) +[![Build on Windows](https://github.com/fairy-rockets/the-gear-of-seasons/workflows/Build%20on%20Windows/badge.svg)](https://github.com/fairy-rockets/the-gear-of-seasons/actions?query=workflow%3A%22Build+on+Windows%22) # How to build