From 21d78f68a6dbfe72bb2b679413ade537c08c8669 Mon Sep 17 00:00:00 2001 From: Devin Shoemaker Date: Thu, 21 Jan 2021 18:30:23 -0600 Subject: [PATCH] Add GitHub Action (#13) --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ce53693 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - uses: bahmutov/npm-install@v1 + - run: yarn format:check + - run: yarn lint + - run: yarn build