From 3b59ea46b4305979df165c9dcba78146ce9d8708 Mon Sep 17 00:00:00 2001 From: chriszarate Date: Thu, 14 Apr 2022 17:28:24 -0400 Subject: [PATCH] Add build workflow --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/lint.yml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7d8ba17c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +--- + +name: Build + +on: + pull_request: + branches: + - trunk + push: + branches: + - trunk + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2.5.1 + with: + cache: 'npm' + node-version: ${{ matrix.node-version }} + + - name: Install + run: npm install + + - name: Build + run: npm run build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e806b15d..78691754 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14, 16] + node-version: [14] steps: - name: Checkout