name: CI on: push: branches: - 'main' - 'versions/*' tags: - 'v*' pull_request: concurrency: group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: npm-test: # Run the tests in every case uses: ./.github/workflows/npm-test.yml cth-test: # Run the Conformance Test Harness on PRs targeting main or versions/ if: github.event_name == 'pull_request' && ( github.base_ref == 'main' || startsWith( github.base_ref, 'versions/' ) ) uses: ./.github/workflows/cth-test.yml with: ignore_failures: true version: 1.1.7 # The latest version that CSS is confirmed to pass docker: # Build docker containers on version tag, push to main and push to versions/ needs: npm-test if: startsWith(github.ref, 'refs/tags/v') || (github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/heads/versions/') uses: ./.github/workflows/docker.yml secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} mkdocs-release: # Release documentation on version tag, but ignore pre-releases if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-') uses: ./.github/workflows/mkdocs.yml