Skip to content

Commit

Permalink
Merge pull request #27 from byu-oit/deps
Browse files Browse the repository at this point in the history
Update dependencies, resolve external-facing deprecations
  • Loading branch information
GaryGSC authored Oct 26, 2022
2 parents 6d90e60 + 1b2a1cc commit 6282922
Show file tree
Hide file tree
Showing 7 changed files with 10,228 additions and 6,826 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ on:
- master
- 'v*'
env:
node_version: "12.x"
node_version: "16.x"

jobs:
build: # make sure build/ci work properly
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: yarn

- name: yarn install
run: yarn install
Expand All @@ -32,12 +33,13 @@ jobs:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: yarn

- name: yarn audit
run: yarn audit --level critical [[ $? -ge 16 ]] && exit 1 || exit 0 # this last part is needed because yarn audit returns a non-0 code if any vulnerabilities are found
Expand All @@ -46,12 +48,13 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: yarn

- name: yarn install
run: yarn install
Expand All @@ -63,12 +66,13 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
cache: yarn

- name: yarn install
run: yarn install
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
env:
tf_version: 0.12.27
steps:
- uses: actions/checkout@v1
- uses: hashicorp/setup-terraform@v1
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.tf_version }}
- run: terraform init
Expand All @@ -32,8 +32,8 @@ jobs:
env:
tf_version: 0.12.27
steps:
- uses: actions/checkout@v1
- uses: hashicorp/setup-terraform@v1
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.tf_version }}
- run: terraform init
Expand All @@ -53,8 +53,8 @@ jobs:
env:
tf_version: 0.12.27
steps:
- uses: actions/checkout@v1
- uses: hashicorp/setup-terraform@v1
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.tf_version }}
terraform_wrapper: false
Expand All @@ -75,9 +75,9 @@ jobs:
env:
tf_version: 0.12.27
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- run: mv __tests__/* .
- uses: hashicorp/setup-terraform@v1
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.tf_version }}
- run: terraform init
Expand All @@ -86,4 +86,4 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
terraform-plan-file: test-plan.tfplan
comment-title: Terraform Plan from root
comment-title: Terraform Plan from root
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ inputs:
description: Title of the comment
default: Terraform Plan
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit 6282922

Please sign in to comment.