Skip to content

Commit

Permalink
ci: improve pushDev/pushNext workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 3, 2024
1 parent ec1bdee commit cfbae49
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pushDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -87,6 +89,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -122,6 +126,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -163,6 +169,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -220,6 +228,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -282,6 +292,8 @@ jobs:
role-to-assume: arn:aws:iam::726952677045:role/GitHubActionsWebinyJs
aws-region: eu-central-1
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -346,6 +358,8 @@ jobs:
role-to-assume: arn:aws:iam::726952677045:role/GitHubActionsWebinyJs
aws-region: eu-central-1
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -541,6 +555,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -749,6 +765,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -957,6 +975,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pushNext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -87,6 +89,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -122,6 +126,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -163,6 +169,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -220,6 +228,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -282,6 +292,8 @@ jobs:
role-to-assume: arn:aws:iam::726952677045:role/GitHubActionsWebinyJs
aws-region: eu-central-1
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -346,6 +358,8 @@ jobs:
role-to-assume: arn:aws:iam::726952677045:role/GitHubActionsWebinyJs
aws-region: eu-central-1
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -541,6 +555,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -749,6 +765,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down Expand Up @@ -957,6 +975,8 @@ jobs:
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: webiny-js
- uses: actions/cache@v4
with:
path: webiny-js/.yarn/cache
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/wac/push.wac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const createCypressJobs = (dbSetup: string) => {
},
environment: "next",
env,
checkout: { path: DIR_WEBINY_JS },
steps: [
...yarnCacheSteps,
...buildRunCacheSteps,
Expand Down Expand Up @@ -265,6 +266,7 @@ const createJestTestsJob = (storage: string | null) => {
"runs-on": "${{ matrix.os }}",
env,
awsAuth: storage === "ddb-es" || storage === "ddb-os",
checkout: { path: DIR_WEBINY_JS },
steps: [
...yarnCacheSteps,
...buildRunCacheSteps,
Expand Down Expand Up @@ -307,6 +309,7 @@ const createPushWorkflow = (branchName: string) => {
build: createJob({
name: "Build",
needs: "constants",
checkout: { path: DIR_WEBINY_JS },
"runs-on": "blacksmith-4vcpu-ubuntu-2204",
steps: [
...yarnCacheSteps,
Expand All @@ -318,6 +321,7 @@ const createPushWorkflow = (branchName: string) => {
codeAnalysis: createJob({
name: "Static code analysis",
needs: ["constants", "build"],
checkout: { path: DIR_WEBINY_JS },
steps: [
...yarnCacheSteps,
...buildRunCacheSteps,
Expand All @@ -336,6 +340,7 @@ const createPushWorkflow = (branchName: string) => {
staticCodeAnalysisTs: createJob({
name: "Static code analysis (TypeScript)",
"runs-on": "blacksmith-4vcpu-ubuntu-2204",
checkout: { path: DIR_WEBINY_JS },
steps: [
...yarnCacheSteps,

Expand Down

0 comments on commit cfbae49

Please sign in to comment.