name: 'CI' on: push: branches: - main pull_request: branches: - '**' jobs: test: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [macos-latest, windows-latest] node: ['15', '14'] steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - run: npm ci - run: npm test - run: npm run build build: runs-on: macos-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '15' - run: npm ci - run: npm run build:all coverage: runs-on: macos-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - run: npm ci - uses: paambaati/codeclimate-action@v2.7.5 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} with: coverageCommand: npm test