From 9591cc4d6085eb5977a354795999b47fc3ad6747 Mon Sep 17 00:00:00 2001 From: ResuBaka Date: Sat, 5 Oct 2019 13:57:02 +0200 Subject: [PATCH 1/2] Added basic github action ci --- .github/workflows/nodejs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..9a7c6e11 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,31 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: yarn lint + run: | + yarn + yarn lint + env: + CI: true + - name: yarn build + run: | + yarn build + env: + CI: true + From 2a03e038670fa937fc1adb8d30f85c974455397c Mon Sep 17 00:00:00 2001 From: ResuBaka Date: Sat, 5 Oct 2019 14:09:40 +0200 Subject: [PATCH 2/2] Added to github ci: on pull_request rule --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9a7c6e11..eaa49267 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,6 @@ name: Node CI -on: [push] +on: [push, pull_request] jobs: build: