chore: allow "list" and "run" without commits. #7445
Workflow file for this run
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
# Copyright 2023 Terramate GmbH | |
# SPDX-License-Identifier: MPL-2.0 | |
name: ci | |
on: | |
pull_request: | |
jobs: | |
checks: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Configure asdf and plugins needed | |
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267 | |
- name: checking go mod tidyness | |
run: terramate run --tags golang --changed -- make mod/check | |
- name: linting code | |
run: terramate run --tags golang --changed -- make lint | |
- name: checking license on source code | |
run: terramate run --tags golang --changed -- make license/check | |
build_test: | |
name: Build and Test | |
runs-on: ${{ matrix.os }} | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
strategy: | |
matrix: | |
os: ["ubuntu-20.04", "macos-11", "macos-12"] | |
go: ["1.20"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Configure asdf and plugins needed | |
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267 | |
- name: make generate | |
run: terramate generate | |
- name: make test | |
run: terramate run --tags golang --changed -- make test | |
- name: make build | |
run: terramate run --tags golang --changed -- make build | |
- name: check cloud info | |
run: terramate run --tags golang --changed -- ./bin/terramate -vv experimental cloud info | |
gh_integration_test: | |
name: GHA Integration Test | |
runs-on: "ubuntu-20.04" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Configure asdf and plugins needed | |
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267 | |
- name: make test/ci | |
run: terramate run --tags golang --changed -- make test/ci | |
release_dry_run: | |
name: Release Dry Run | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Configure asdf and plugins needed | |
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267 | |
- name: release dry run | |
run: terramate run --tags golang --changed -- make release/dry-run | |
ci: | |
needs: | |
- checks | |
- build_test | |
- gh_integration_test | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: Kesin11/actions-timeline@v1 |