From 27227f1430455bbce25df54e4d4746450effcb51 Mon Sep 17 00:00:00 2001 From: Travis Longoria Date: Thu, 13 Jan 2022 09:38:23 -0700 Subject: [PATCH] create action to validate builds --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..648cbe1b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, cache/restore them, 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: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +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/ + + # NOTE: There are no necessary tests to run for this repo + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm run build diff --git a/.gitignore b/.gitignore index 337110b5..fd9db706 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ dist/ # ignore local npmrc files .npmrc + +# Ignore IDE specific files +.idea