From 8ad81be8afdbf2fc5dae1035a1213ba86e38046e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 12 Jan 2021 11:44:38 +0100 Subject: [PATCH] Create node.js.yml --- frontend/.github/workflows/node.js.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 frontend/.github/workflows/node.js.yml diff --git a/frontend/.github/workflows/node.js.yml b/frontend/.github/workflows/node.js.yml new file mode 100644 index 0000000000..80d0022dab --- /dev/null +++ b/frontend/.github/workflows/node.js.yml @@ -0,0 +1,28 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn ci + - run: yarn run test:ci