Skip to content

Commit

Permalink
Update terraform.yml
Browse files Browse the repository at this point in the history
Signed-off-by: myHerb <137535445+myHerbDev@users.noreply.github.com>
  • Loading branch information
myHerbDev authored Sep 13, 2024
1 parent 0b854ac commit b4a0791
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,47 @@
# uses: hashicorp/setup-terraform@v1
# with:
# cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
on:
push:
branches:
- main
- release/*

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
on:
pull_request:
branches:
- main

jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: ['18.x', '20.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}

- name: npm install, build and test
run: |
npm install
npm run build --if-present
npm test
steps:
- run: npm publish
if: github.event_name == 'push'

name: 'Terraform'

on:
Expand Down

0 comments on commit b4a0791

Please sign in to comment.