Skip to content

Commit 6c71127

Browse files
authored
Merge pull request #14 from apollosolutions/maint/update-github-actions
use native actions + bump checkout version
2 parents 29e9298 + fda7bde commit 6c71127

22 files changed

+48
-62
lines changed

.github/workflows/_deploy-client-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
steps:
4646
- name: Checkout
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848

4949
- name: "Configure Kubeconfig w/ EKS"
5050
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-prod --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-client-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
- id: "auth"
4343
uses: "google-github-actions/auth@v0"

.github/workflows/_deploy-coprocessor-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
5252

5353
- name: "Configure Kubeconfig w/ EKS"
5454
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-${{ inputs.cluster_suffix }} --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-coprocessor-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
- name: Checkout
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545

4646
- id: "auth"
4747
uses: "google-github-actions/auth@v0"

.github/workflows/_deploy-loadtest-infra-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: "Configure Kubeconfig w/ EKS"
2929
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-prod --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-loadtest-infra-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- id: "auth"
3232
uses: "google-github-actions/auth@v0"

.github/workflows/_deploy-otel-collector-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434

3535
- name: "Configure Kubeconfig w/ EKS"
3636
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-prod --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-otel-collector-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030

3131
- id: "auth"
3232
uses: "google-github-actions/auth@v0"

.github/workflows/_deploy-router-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151

5252
- name: "Configure Kubeconfig w/ EKS"
5353
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-${{ inputs.environment }} --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-router-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- name: Checkout
56-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5757

5858
- id: "auth"
5959
uses: "google-github-actions/auth@v0"

.github/workflows/_deploy-subgraphs-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v4
5656

5757
- name: "Configure Kubeconfig w/ EKS"
5858
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-${{ inputs.cluster_suffix }} --region ${{ env.AWS_REGION }}

.github/workflows/_deploy-subgraphs-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050

5151
- id: "auth"
5252
uses: "google-github-actions/auth@v0"

.github/workflows/_rover-client-pq-publish.yml

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ on:
2020

2121
env:
2222
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
23-
APOLLO_GRAPH_REF: ${{ secrets.APOLLO_GRAPH_ID }}
2423
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
2524

2625
jobs:
@@ -30,33 +29,20 @@ jobs:
3029

3130
steps:
3231
- name: Checkout
33-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3433

3534
- name: Install Rover
36-
run: |
37-
curl -sSL https://rover.apollo.dev/nix/latest | sh
38-
echo "$HOME/.rover/bin" >> $GITHUB_PATH
35+
uses: apollographql-gh-actions/install-rover@v1
3936

4037
- name: Generate PQ manifest
4138
run: |
4239
cd ./client/
43-
npm install --save-dev @apollo/generate-persisted-query-manifest
4440
npx generate-persisted-query-manifest
4541
46-
- name: Publish to dev
47-
if: inputs.environment == 'dev'
48-
run: |
49-
cd client
50-
rover persisted-queries publish \
51-
--graph-id ${{ secrets.APOLLO_GRAPH_ID }} \
52-
--list-id ${{ secrets.APOLLO_PQ_DEV_ID }} \
53-
--manifest ./persisted-query-manifest.json
54-
55-
- name: Publish to prod
56-
if: inputs.environment == 'prod'
57-
run: |
58-
cd client
59-
rover persisted-queries publish \
60-
--graph-id ${{ secrets.APOLLO_GRAPH_ID }} \
61-
--list-id ${{ secrets.APOLLO_PQ_PROD_ID }} \
62-
--manifest ./persisted-query-manifest.json
42+
- name: Publish PQ Manifest
43+
uses: apollographql-gh-actions/rover-persisted-queries-publish@v1
44+
with:
45+
apollo-key: ${{ secrets.APOLLO_KEY }}
46+
graph-ref: ${{ secrets.APOLLO_GRAPH_ID }}@${{ inputs.environment }}
47+
manifest: ./client/persisted-query-manifest.json
48+

.github/workflows/_rover-subgraph-check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232

3333
- name: Install Rover
34-
run: |
35-
curl -sSL https://rover.apollo.dev/nix/latest | sh
36-
echo "$HOME/.rover/bin" >> $GITHUB_PATH
34+
uses: apollographql-gh-actions/install-rover@v1
3735

3836
- name: Rover Subgraph Check
39-
run: |
40-
rover subgraph check ${{ secrets.APOLLO_GRAPH_ID }}@${{ inputs.variant }} \
41-
--name ${{ inputs.subgraph_name }} \
42-
--schema ./subgraphs/${{inputs.subgraph_name}}/schema.graphql
37+
uses: apollographql-gh-actions/rover-subgraph-check@v1
38+
with:
39+
apollo-key: ${{ secrets.APOLLO_KEY }}
40+
graph-ref: ${{ secrets.APOLLO_GRAPH_ID }}@${{ inputs.variant }}
41+
name: ${{ inputs.subgraph_name }}
42+
schema: ./subgraphs/${{inputs.subgraph_name}}/schema.graphql

.github/workflows/_rover-subgraph-publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ on:
1818
required: true
1919

2020
env:
21-
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
2221
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
2322

2423
jobs:
@@ -28,16 +27,17 @@ jobs:
2827

2928
steps:
3029
- name: Checkout
31-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3231

3332
- name: Install Rover
34-
run: |
35-
curl -sSL https://rover.apollo.dev/nix/latest | sh
36-
echo "$HOME/.rover/bin" >> $GITHUB_PATH
33+
uses: apollographql-gh-actions/install-rover@v1
3734

3835
- name: Rover Subgraph Publish
39-
run: |
40-
rover subgraph publish ${{ secrets.APOLLO_GRAPH_ID }}@${{ inputs.variant }} \
41-
--name ${{ inputs.subgraph_name }} \
42-
--routing-url http://graphql.${{ inputs.subgraph_name }}.svc.cluster.local:4001 \
43-
--schema ./subgraphs/${{inputs.subgraph_name}}/schema.graphql
36+
uses: apollographql-gh-actions/rover-subgraph-publish@v1
37+
with:
38+
apollo-key: ${{ secrets.APOLLO_KEY }}
39+
graph-ref: ${{ secrets.APOLLO_GRAPH_ID }}@${{ inputs.variant }}
40+
name: ${{ inputs.subgraph_name }}
41+
schema: ./subgraphs/${{inputs.subgraph_name}}/schema.graphql
42+
routing-url: http://graphql.${{ inputs.subgraph_name }}.svc.cluster.local:4001
43+

.github/workflows/_run-loadtest-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
- name: "Configure Kubeconfig w/ EKS"
3838
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-prod --region ${{ env.AWS_REGION }}

.github/workflows/_run-loadtest-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- id: "auth"
3737
uses: "google-github-actions/auth@v0"

.github/workflows/_uninstall-router-aws.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232

3333
- name: "Configure Kubeconfig w/ EKS"
3434
run: aws eks update-kubeconfig --name ${{ secrets.CLUSTER_PREFIX }}-${{ inputs.environment }} --region ${{ env.AWS_REGION }}

.github/workflows/_uninstall-router-gke.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232

3333
- id: "auth"
3434
uses: "google-github-actions/auth@v0"

.github/workflows/merge-to-main.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
packages: write
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Log in to the Container registry
2727
uses: docker/[email protected]
@@ -58,7 +58,7 @@ jobs:
5858
packages: write
5959
steps:
6060
- name: Checkout repository
61-
uses: actions/checkout@v3
61+
uses: actions/checkout@v4
6262

6363
- name: Log in to the Container registry
6464
uses: docker/[email protected]
@@ -98,7 +98,7 @@ jobs:
9898
subgraph: [checkout, discovery, inventory, orders, products, reviews, shipping, users]
9999
steps:
100100
- name: Checkout repository
101-
uses: actions/checkout@v3
101+
uses: actions/checkout@v4
102102

103103
- name: Log in to the Container registry
104104
uses: docker/[email protected]

.github/workflows/pr-check-code.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
npm-build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- uses: actions/setup-node@v3
1414
with:

.github/workflows/pr-check-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Helm lint
1717
id: list-changed

0 commit comments

Comments
 (0)