From 3a17d8e247441a9b16fef2ef1da6617956ba0e77 Mon Sep 17 00:00:00 2001 From: JrMasterModelBuilder Date: Sat, 14 Nov 2020 23:30:20 -0500 Subject: [PATCH] Replacing Travis with Actions --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ .nvmrc | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .nvmrc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ebee68e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: main + +on: push + +jobs: + build: + strategy: + matrix: + config: + - node-version: '10.0.0' + NO_LINT: 1 + - node-version: '15.2.0' + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.config.node-version }} + + - run: npm install + - run: npm run clean + - run: npm run lint + if: matrix.config.NO_LINT != 1 + - run: npm run build + - run: npm run test diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..c107424 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +14.15.0