Skip to content

Commit

Permalink
Pin node to lts in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Dec 11, 2023
1 parent 9a96176 commit b0ef7ce
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 21 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out the repo
- name: Checkout the repo with submodules
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -28,8 +33,6 @@ jobs:

- name: Install and build all package dependencies
run: npm ci
env:
PUBLIC_STAGE: ${{ env.STAGE }}

- name: Test cdk deployment
run: npm run test:cdk
17 changes: 10 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,29 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '(skip deploy)') }}

steps:
- name: Check out the repo
- name: Checkout the repo with submodules
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Install action dependencies
run: |
curl -sSf https://atlasgo.sh | sh

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Install action dependencies
run: |
curl -sSf https://atlasgo.sh | sh
- name: Install and build all package dependencies
run: npm ci
env:
PUBLIC_STAGE: ${{ env.STAGE }}

- name: Deploy cdk infrastructure
run: npm run deploy:cdk
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
- name: Checkout the repo with submodules
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts'

- name: Get the tag name
run: |
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
Expand All @@ -30,18 +35,20 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

# - name: Install action dependencies
# run: |
# curl -sSf https://atlasgo.sh | sh

- name: Install and build all package dependencies
run: npm ci
env:
PUBLIC_STAGE: ${{ env.STAGE }}

- name: Deploy cdk infrastructure
- name: Deploy CDK infrastructure
run: npm run deploy:cdk

# - name: Migrate users database
# run: npm run migrations:users

- name: Check out develop
- name: Checkout develop
uses: actions/checkout@v3
with:
ref: develop
Expand All @@ -52,7 +59,7 @@ jobs:
git fetch origin master:master
git reset --hard master
- name: Create Pull Request
- name: Create a pull request
uses: peter-evans/create-pull-request@v3
with:
base: develop
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '(skip deploy)') }}

steps:
- name: Check out the repo
- name: Checkout the repo with submodules
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Install action dependencies
run: |
curl -sSf https://atlasgo.sh | sh
- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts'

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -37,12 +38,16 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Install action dependencies
run: |
curl -sSf https://atlasgo.sh | sh
- name: Install and build all package dependencies
run: npm ci
env:
PUBLIC_STAGE: ${{ env.STAGE }}

- name: Deploy cdk infrastructure
- name: Deploy CDK infrastructure
run: npm run deploy:cdk

- name: Migrate users database
Expand Down

0 comments on commit b0ef7ce

Please sign in to comment.