Skip to content

Commit

Permalink
Simplify the test with rename (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
kopiczko authored Oct 4, 2024
1 parent 580414b commit 8efaa53
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- master

env:
AWS_NUKE_VERSION: 'v2.25.0'

jobs:
test:
name: Test
Expand All @@ -31,6 +28,7 @@ jobs:
with:
binary: "devctl"
version: "2.0.0"

- name: Test downloading external binary
uses: ./
with:
Expand All @@ -39,21 +37,13 @@ jobs:
download_url: "https://github.com/fsaintjacques/${binary}-tool/archive/${version}.tar.gz"
tarball_binary_path: "*/src/${binary}"
smoke_test: "${binary} --version"
- name: Set OS information related variables
run: |
echo "OS_NAME=$(uname -s | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
echo "OS_ARCH=$(dpkg --print-architecture)" >> $GITHUB_ENV
echo "OS_ARCH_TYPE=$(arch)" >> $GITHUB_ENV
- name: Set download aws-nuke download url and download binary name variables
run: |
echo "AWS_NUKE_DOWNLOAD_URL=https://github.com/rebuy-de/aws-nuke/releases/download/${{ env.AWS_NUKE_VERSION }}/aws-nuke-${{ env.AWS_NUKE_VERSION }}-${OS_NAME}-${OS_ARCH}.tar.gz" >> $GITHUB_ENV
echo "AWS_NUKE_DOWNLOAD_BINARY_NAME=aws-nuke-${{ env.AWS_NUKE_VERSION }}-${{ env.OS_NAME }}-${{ env.OS_ARCH }}" >> $GITHUB_ENV
- name: Test downloading aws-nuke

- name: Test downloading binary with renaming
uses: ./
with:
binary: "aws-nuke"
version: "${{ env.AWS_NUKE_VERSION }}"
download_url: "${{ env.AWS_NUKE_DOWNLOAD_URL }}"
tarball_binary_path: "${{ env.AWS_NUKE_DOWNLOAD_BINARY_NAME }}"
version: "v2.25.0"
download_url: "https://github.com/rebuy-de/aws-nuke/releases/download/${version}/aws-nuke-${version}-linux-amd64.tar.gz"
tarball_binary_path: "aws-nuke-${version}-linux-amd64"
smoke_test: "${binary} version"
binary_new_name: "aws-nuke"
binary_new_name: "aws-nuke"

0 comments on commit 8efaa53

Please sign in to comment.