From 3ab9305209fe8bb4d62405400608407f29b127c0 Mon Sep 17 00:00:00 2001 From: Mike Nicholson Date: Mon, 21 Feb 2022 21:37:37 -0500 Subject: [PATCH] Add CI workflow in GitHub Actions --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..1eec9e98 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: Node.js CI + +on: push + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [6.x, 7.x, 8.x, 9.x, 10.x, 11.x, 12.x, 13.x, 14.x, 15.x, 16.x, 17.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - run: npm run build --if-present + - run: npm test \ No newline at end of file