From dbe8912badbe398774d7d7ec94c4306dd009f6a4 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Sun, 7 Feb 2021 18:24:31 -0500 Subject: [PATCH] ci: add github actions Signed-off-by: Agnes Lin --- .github/workflows/continuous-integration.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/continuous-integration.yaml diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml new file mode 100644 index 0000000..7851d96 --- /dev/null +++ b/.github/workflows/continuous-integration.yaml @@ -0,0 +1,27 @@ +name: Continuous Integration + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [10, 12, 14] + steps: + - name: Git checkout + uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - run: npm install + - run: npm test