mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: revert skips of required checks (#3303)
These were putting certain PRs in an unmergeable state.
This commit is contained in:
@@ -34,7 +34,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
|
||||
go: ${{ steps.filter.outputs.go }}
|
||||
sh: ${{ steps.filter.outputs.sh }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -49,10 +48,6 @@ jobs:
|
||||
- 'docs/**'
|
||||
# For testing:
|
||||
# - '.github/**'
|
||||
go:
|
||||
- "**.go"
|
||||
- "**.mod"
|
||||
- "**.sum"
|
||||
sh:
|
||||
- "**.sh"
|
||||
- id: debug
|
||||
@@ -63,36 +58,15 @@ jobs:
|
||||
debug-inputs:
|
||||
needs:
|
||||
- changes
|
||||
- pr-context
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: log
|
||||
run: |
|
||||
echo "${{ toJSON(needs) }}"
|
||||
echo "${{ contains(needs.pr-context.outputs.skips, 'test/go/postgres') }} "
|
||||
echo "${{ contains(needs.pr-context.outputs.skips, 'test/e2e') }} "
|
||||
|
||||
pr-context:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
skips: ${{ steps.pr-context.outputs.skips }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "~1.18"
|
||||
- id: pr-context
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJSON(github) }}
|
||||
run: |
|
||||
(cd .github/workflows/prcontext && go build)
|
||||
./.github/workflows/prcontext/prcontext
|
||||
|
||||
style-lint-golangci:
|
||||
name: style/lint/golangci
|
||||
timeout-minutes: 5
|
||||
needs: changes
|
||||
if: needs.changes.outputs.go == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -108,8 +82,6 @@ jobs:
|
||||
name: style/lint/shellcheck
|
||||
timeout-minutes: 5
|
||||
runs-on: ubuntu-latest
|
||||
needs: changes
|
||||
if: needs.changes.outputs.sh == 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run ShellCheck
|
||||
@@ -122,8 +94,6 @@ jobs:
|
||||
style-lint-typescript:
|
||||
name: "style/lint/typescript"
|
||||
timeout-minutes: 5
|
||||
needs: changes
|
||||
if: needs.changes.outputs.docs-only == 'false'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
@@ -207,8 +177,6 @@ jobs:
|
||||
|
||||
style-fmt:
|
||||
name: "style/fmt"
|
||||
needs: changes
|
||||
if: needs.changes.outputs.docs-only == 'false'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
@@ -241,8 +209,6 @@ jobs:
|
||||
|
||||
test-go:
|
||||
name: "test/go"
|
||||
needs: changes
|
||||
if: needs.changes.outputs.docs-only == 'false'
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
@@ -328,12 +294,6 @@ jobs:
|
||||
|
||||
test-go-postgres:
|
||||
name: "test/go/postgres"
|
||||
needs:
|
||||
- changes
|
||||
- pr-context
|
||||
if: >
|
||||
needs.changes.outputs.docs-only == 'false' &&
|
||||
!contains(needs.pr-context.outputs.skips, 'test/go/postgres')
|
||||
runs-on: ubuntu-latest
|
||||
# This timeout must be greater than the timeout set by `go test` in
|
||||
# `make test-postgres` to ensure we receive a trace of running
|
||||
@@ -514,8 +474,6 @@ jobs:
|
||||
|
||||
test-js:
|
||||
name: "test/js"
|
||||
needs: changes
|
||||
if: needs.changes.outputs.docs-only == 'false'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
@@ -571,8 +529,7 @@ jobs:
|
||||
name: "test/e2e/${{ matrix.os }}"
|
||||
needs:
|
||||
- changes
|
||||
- pr-context
|
||||
if: needs.changes.outputs.docs-only == 'false' && !contains(needs.pr-context.outputs.skips, 'test/e2e')
|
||||
if: needs.changes.outputs.docs-only == 'false'
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
|
||||
Reference in New Issue
Block a user