name: ci on: push: branches: - main - renovate/* - renovate/* pull_request: branches: - main jobs: ci: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] node: [14, 16] steps: - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - name: checkout uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v3 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ matrix.os }}-yarn- - name: Install dependencies run: yarn - name: Lint run: yarn lint:all - name: Test run: yarn test - name: Coverage uses: codecov/codecov-action@v3