[ci] Fix github-actions always including AWS env variables #273
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: CI | |
on: | |
push: | |
paths-ignore: | |
- "README.md" | |
- "CONTRIBUTING.md" | |
- "CHANGELOG.md" | |
- "LICENSE" | |
- ".gitignore" | |
jobs: | |
cloudformation-templates: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Cloud Formation Linter with Latest Version | |
uses: scottbrenner/cfn-lint-action@v2 | |
- name: Print the Cloud Formation Linter Version & run Linter. | |
run: | | |
cfn-lint --version | |
cfn-lint resources/infrastructure/cloudformation-templates/**/*.yaml --format=pretty | |
clojure-code: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install Clojure Tools | |
uses: DeLaGuardo/setup-clojure@10.1 | |
with: | |
clj-kondo: 2022.11.02 | |
- name: Install Babashka | |
run: | | |
curl --location --output bb.tar.gz "https://github.com/babashka/babashka/releases/download/v1.0.168/babashka-1.0.168-linux-amd64.tar.gz" | |
tar xf bb.tar.gz | |
chmod +x ./bb | |
- name: Lint | |
run: clj-kondo --lint src | |
- name: Build Uberjar | |
run: | | |
./bb uberjar hop-cli.jar --main hop-cli.main | |
- name: Release Uberjar | |
uses: softprops/action-gh-release@v1 | |
if: contains(github.ref, 'refs/tags/') | |
with: | |
files: hop-cli.jar |