diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c4ff832..1ca9387 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,27 +7,75 @@ on: branches: [ master ] jobs: - test: - name: Run tests and linter + lint: + name: Run linter runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '14' + node-version: '16' - name: Install dependencies - run: yarn install - - - name: Install Sapling - run: npx npm-install-peers + run: npm ci - name: Run linter run: npm run lint + test-node-16: + name: Test Node.js v16 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: npm ci + - name: Run test run: npm run test:report - name: Report coverage - run: npm run test:send \ No newline at end of file + run: npm run test:send + + test-node-14: + name: Test Node.js v14 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install dependencies + run: npm ci + + - name: Install peer dependencies + run: npx npm-install-peers + + - name: Run test + run: npm run test + + test-node-12: + name: Test Node.js v12 + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '12' + + - name: Install dependencies + run: npm ci + + - name: Install peer dependencies + run: npx npm-install-peers + + - name: Run test + run: npm run test