Update GitHub Actions workflow to test Terraform PR and add local act… #21
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
# This is a basic workflow to help you get started with Actions | |
name: Concurrency test | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
# env: | |
# BASE_REF: ${{ startsWith(github.event_name, 'pull_request') && github.base_ref || (startsWith(github.ref, 'refs/tags/') && github.bra || github.ref_name) }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# run: ["run1", "run2"] | |
steps: | |
# - name: Checkout REPO | |
# uses: actions/checkout@v4 | |
# with: | |
# ref: ${{ env.BASE_REF }} | |
- name: Environment Read | |
run: | | |
echo "GITHUB.REF ${{ github.ref }}" | |
echo "GITHUB.REF_NAME ${{ github.ref_name }}" | |
echo "GITHUB.WORKFLOW ${{ github.workflow }}" | |
echo "GITHUB.HEAD ${{ github.head_ref }}" | |
echo "GITHUB.BASE ${{ github.base_ref }}" | |