Skip to content

Commit

Permalink
Merge pull request #3922 from continuedev/nate/ci3
Browse files Browse the repository at this point in the history
update ci
  • Loading branch information
sestinj authored Feb 1, 2025
2 parents bda541a + 35dfe37 commit d5331c9
Showing 1 changed file with 1 addition and 57 deletions.
58 changes: 1 addition & 57 deletions .github/workflows/pr_checks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR checks

on:
pull_request_target:
pull_request:
branches:
- main
paths:
Expand All @@ -22,21 +22,10 @@ on:
- ".github/workflows/**"

jobs:
validate-pr:
runs-on: ubuntu-latest
environment: tests-requiring-secrets
steps:
- uses: actions/checkout@v4

install-root:
needs: validate-pr
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# This is important - it switches from the base repo to the fork
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand All @@ -57,9 +46,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand All @@ -86,12 +72,8 @@ jobs:
core-checks:
needs: install-core
runs-on: ubuntu-latest
environment: tests-requiring-secrets
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -122,9 +104,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -157,9 +136,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -191,9 +167,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -231,9 +204,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -268,9 +238,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -303,9 +270,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -333,9 +297,6 @@ jobs:
test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Cache node modules
uses: actions/cache@v3
Expand Down Expand Up @@ -363,9 +324,6 @@ jobs:
needs: [install-vscode, install-core]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -399,9 +357,6 @@ jobs:
needs: [install-vscode, install-core]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -443,17 +398,13 @@ jobs:
]
runs-on: ubuntu-latest
# Tests requiring secrets need approval from maintainers
environment: tests-requiring-secrets
strategy:
fail-fast: false
matrix:
test_file: ${{ fromJson(needs.vscode-get-test-file-matrix.outputs.test_file_matrix) }}
command: ["e2e:ci:run", "e2e:ci:run-yaml"]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -517,9 +468,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -552,10 +500,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- uses: actions/cache@v4
with:
path: core/node_modules
Expand Down

0 comments on commit d5331c9

Please sign in to comment.