From cc0e55d3729d1735d26815300b88396a9f2f2939 Mon Sep 17 00:00:00 2001 From: Banks T Date: Sun, 28 Jun 2020 04:54:53 -0400 Subject: [PATCH] Add client CI Action --- .github/workflows/client.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/client.yml diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml new file mode 100644 index 000000000..1eecc7e01 --- /dev/null +++ b/.github/workflows/client.yml @@ -0,0 +1,38 @@ +# 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 ] + paths: + - photon-client/** + pull_request: + branches: [ master ] + paths: + - photon-client/** + +jobs: + build: + + runs-on: ubuntu-latest + container: + image: docker://node:10 + volumes: + - /workspace:/github/workspace + steps: + - uses: actions/checkout@v2 + - run: mkdir built-client + - run: cd built-client + - name: Use Node.js 10 + uses: actions/setup-node@v1 + with: + node-version: 10 + - run: npm ci + - run: npm run build --if-present + - uses: actions/upload-artifact@master + with: + name: built-client + path: built-client + #- run: npm test