name: test on: [push, pull_request] permissions: contents: read jobs: jest: runs-on: ubuntu-latest services: redis: image: redis ports: - 6379/tcp options: --entrypoint redis-server strategy: matrix: node-version: ['14', '16'] name: Jest on Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'yarn' - run: yarn - run: npm run jest:coverage env: REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}/ - name: Upload coverage to Codecov if: ${{ matrix.node-version == '16' }} uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos as documented, but seems broken docs: runs-on: ubuntu-latest strategy: matrix: node-version: ['14', '16'] name: Build docs on Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'yarn' - run: yarn - name: Build docs run: npm run docs:build all: runs-on: ubuntu-latest strategy: matrix: node-version: ['14', '16'] name: Build radar and maintainer on Node ${{ matrix.node-version }} steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'yarn' - run: yarn - name: Build radar and maintainer run: npm run build:all