From 70af8a17d11cfb6ab309215d1756c174009cdd90 Mon Sep 17 00:00:00 2001 From: mrdrogdrog Date: Sun, 7 Jun 2020 00:02:50 +0200 Subject: [PATCH] Restructure github flow (#165) * Restructure github flow * Use node js action * Add more node versions Signed-off-by: Tilman Vatteroth --- .github/workflows/build.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1dd3435d6..dae27da58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,10 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node: ['10', '12', '14'] + name: Test with NodeJS ${{ matrix.node }} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -17,11 +21,11 @@ jobs: with: path: node_modules key: node_modules + - name: Set up NodeJS + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} - name: Install dependencies - uses: borales/actions-yarn@v2.1.0 - with: - cmd: install - - name: build project - uses: borales/actions-yarn@v2.1.0 - with: - cmd: build + run: yarn install + - name: Build project + run: yarn build