From 35c340a0ec3a34ef74dcb057a9fba636cf76aa44 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Thu, 19 Aug 2021 15:12:52 -0700 Subject: [PATCH] ci(actions): nodejs --- .github/workflows/nodejs.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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 0000000..d710dec --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,37 @@ +# CI for command line NodeJS Applications +name: nodejs +on: + push: + paths: + - "**/**" + - "!**/*.md/**" + +env: + CI: true + FORCE_COLOR: 2 + +jobs: + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + node: ['14'] + os: ['ubuntu-latest'] + + steps: + - name: Clone repository + uses: actions/checkout@v2.3.4 + + - name: Set up Node.js + uses: actions/setup-node@v2.1.5 + with: + node-version: ${{ matrix.node }} + + - name: Install npm dependencies + run: npm install + + - name: Run build + run: npm run build