Skip to content

Commit

Permalink
syntax is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Dec 13, 2023
1 parent e4f9211 commit d3fc23e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 35 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/smokeTestDeployDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,24 @@ env:

jobs:
smoke-test-front-and-back-end:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache yarn
uses: actions/[email protected]
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Set up dependencies
working-directory: frontend
run: yarn install --prefer-offline
- name: Smoke test the env
uses: ./.github/actions/post-deploy-smoke-test
with:
# REPLACE ME WITH deploy-env: ${{inputs.deploy_env}}
deploy-env: dev7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache yarn
uses: actions/[email protected]
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Set up dependencies
working-directory: frontend
run: yarn install --prefer-offline
- name: Smoke test the env
uses: ./.github/actions/post-deploy-smoke-test
with:
# REPLACE ME WITH deploy-env: ${{inputs.deploy_env}}
deploy-env: dev7

36 changes: 19 additions & 17 deletions .github/workflows/smokeTestDeployProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@ env:

jobs:
smoke-test-front-and-back-end:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache yarn
uses: actions/[email protected]
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Set up dependencies
working-directory: frontend
run: yarn install --prefer-offline
- name: Smoke test the env
uses: ./.github/actions/post-deploy-smoke-test
with:
deploy-env: ${{env.DEPLOY_ENV}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Cache yarn
uses: actions/[email protected]
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Set up dependencies
working-directory: frontend
run: yarn install --prefer-offline
- name: Smoke test the env
uses: ./.github/actions/post-deploy-smoke-test
with:
deploy-env: ${{env.DEPLOY_ENV}}

0 comments on commit d3fc23e

Please sign in to comment.