From b3a4cadcd1580ae3dfb9564cf29fac7d34a31d7d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 4 Oct 2019 09:38:45 +0200 Subject: [PATCH] Add GH actions (#221) --- .github/workflows/nodejs.yml | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 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..4f6439cb --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,54 @@ +name: Node CI + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [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: lint + run: | + yarn install + yarn lint + + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [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: test + run: | + yarn install + yarn test + + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [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: build + run: | + yarn install + yarn build + env: + CI: true