fix: tsconfig files #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: push-example | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/push-example.yaml | |
- .nvmrc | |
- .terraformignore | |
- example/** | |
- src/** | |
- terraform/** | |
- package.json | |
- tsconfig.json | |
concurrency: push-example | |
jobs: | |
node: | |
name: Build artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
- name: Install package dependencies | |
run: npm ci | |
- name: Install example dependencies | |
run: npm ci | |
working-directory: example | |
- name: Build Worker | |
run: npm run build | |
working-directory: example | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: example/dist | |
terraform: | |
name: Deploy artifacts | |
runs-on: ubuntu-latest | |
needs: [node] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: example/dist | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v1 | |
with: | |
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} | |
- name: Terraform Init | |
working-directory: terraform | |
run: terraform init | |
- name: Terraform Validate | |
working-directory: terraform | |
run: terraform validate -no-color | |
- name: Terraform Apply | |
working-directory: terraform | |
run: terraform apply -auto-approve |