Skip to content

Commit

Permalink
Merge pull request #3 from urfave/migration-time
Browse files Browse the repository at this point in the history
Renaming and migrating post-import
  • Loading branch information
meatballhat authored Oct 16, 2022
2 parents 3f3a9dc + 6c27008 commit 924df1d
Show file tree
Hide file tree
Showing 14 changed files with 462 additions and 164 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: main
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
env:
GO_BOOTSTRAP_VERSION: 1.17.13
SHELLCHECK_URL: "https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz"
SHFMT_URL: "https://github.com/mvdan/sh/releases/download/v3.5.1/shfmt_v3.5.1_linux_amd64"
jobs:
build:
strategy:
matrix:
env:
- runner: ubuntu-latest
goos: linux
goarch: amd64
target: native
# TODO: more matrix entries
runs-on: ${{ matrix.env.runner }}
env:
TARGET: ${{ matrix.env.target }}
GOOS: ${{ matrix.env.goos }}
GOARCH: ${{ matrix.env.goarch }}
steps:
- uses: actions/checkout@v3
- run: printf 'GIMME_TMP=%s\n' "${RUNNER_TEMP}" | tee -a "${GITHUB_ENV}"
- run: printf 'UNAME=%s\n' "$(uname | tr '[:upper:]' '[:lower:]')" | tee -a "${GITHUB_ENV}"
- run: |
GO_VERSIONS="$(sed -n -e '/^[^#]/p' < .testdata/sample-binary-$UNAME) $(sed -n -e '/^[^#]/p' < .testdata/source-$UNAME)"
printf 'GO_VERSIONS=%s\n' "$(echo "${GO_VERSIONS}" | tr '\n' ' ')" | tee -a "${GITHUB_ENV}"
- run: printf 'PATH=%s\n' "${HOME}/bin:${PATH}" | tee -a "${GITHUB_ENV}"
- run: mkdir -p "${HOME}/bin"
- run:
if [ $UNAME = linux ] && [[ $(shellcheck --version | awk '/^version:/ { print $2 }') != 0.7.1 ]] ; then
curl -sSL -o "${GIMME_TMP}/shellcheck.tar.xz" "${SHELLCHECK_URL}";
tar -C "${HOME}/bin" --exclude="*.txt" --strip-components=1 -xf "${GIMME_TMP}/shellcheck.tar.xz";
shellcheck --version;
fi
- run:
if [ $UNAME = linux ] && [[ $(shfmt -version 2>/dev/null) != v3.5.1 ]] ; then
curl -sSL "${SHFMT_URL}" -o "${HOME}/bin/shfmt";
chmod +x "${HOME}/bin/shfmt";
shfmt -version;
fi
- run: if [ $UNAME = linux ]; then make lint; fi
- run: git diff --exit-code
- run: git diff --cached --exit-code
- run: ./gimme -h
- run: ./gimme -V
- run: ./runtests "${TARGET}" "${GO_BOOTSTRAP_VERSION}" ${GO_VERSIONS}
- run: ./gimme -l
161 changes: 157 additions & 4 deletions .testdata/binary-darwin
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
1.9rc1
1.9beta2
1.9beta1
1.9.7
1.9.6
1.9.5
1.9.4
1.9.3
Expand All @@ -23,7 +25,6 @@
1.8beta1
1.8.7
1.8.6
1.8.5rc4
1.8.5
1.8.4
1.8.3
Expand All @@ -42,7 +43,6 @@
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7
1.6rc2
Expand Down Expand Up @@ -72,16 +72,169 @@
1.4
1.3rc2
1.3rc1
1.3beta2
1.3beta1
1.3.3
1.3.2
1.3.1
1.3
1.2.2
1.19rc2
1.19rc1
1.19beta1
1.19.2
1.19.1
1.19
1.18rc1
1.18beta2
1.18beta1
1.18.7
1.18.6
1.18.5
1.18.4
1.18.3
1.18.2
1.18.1
1.18
1.17rc2
1.17rc1
1.17beta1
1.17.9
1.17.8
1.17.7
1.17.6
1.17.5
1.17.4
1.17.3
1.17.2
1.17.13
1.17.12
1.17.11
1.17.10
1.17.1
1.17
1.16rc1
1.16beta1
1.16.9
1.16.8
1.16.7
1.16.6
1.16.5
1.16.4
1.16.3
1.16.2
1.16.15
1.16.14
1.16.13
1.16.12
1.16.11
1.16.10
1.16.1
1.16
1.15rc2
1.15rc1
1.15beta1
1.15.9
1.15.8
1.15.7
1.15.6
1.15.5
1.15.4
1.15.3
1.15.2
1.15.15
1.15.14
1.15.13
1.15.12
1.15.11
1.15.10
1.15.1
1.15
1.14rc1
1.14beta1
1.14.9
1.14.8
1.14.7
1.14.6
1.14.5
1.14.4
1.14.3
1.14.2
1.14.15
1.14.14
1.14.13
1.14.12
1.14.11
1.14.10
1.14.1
1.14
1.13rc2
1.13rc1
1.13beta1
1.13.9
1.13.8
1.13.7
1.13.6
1.13.5
1.13.4
1.13.3
1.13.2
1.13.15
1.13.14
1.13.13
1.13.12
1.13.11
1.13.10
1.13.1
1.13
1.12rc1
1.12beta2
1.12beta1
1.12.9
1.12.8
1.12.7
1.12.6
1.12.5
1.12.4
1.12.3
1.12.2
1.12.17
1.12.16
1.12.15
1.12.14
1.12.13
1.12.12
1.12.11
1.12.10
1.12.1
1.12
1.11rc2
1.11rc1
1.11beta3
1.11beta2
1.11beta1
1.11.9
1.11.8
1.11.7
1.11.6
1.11.5
1.11.4
1.11.3
1.11.2
1.11.13
1.11.12
1.11.11
1.11.10
1.11.1
1.11
1.10rc2
1.10rc1
1.10beta2
1.10beta1
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10
Loading

0 comments on commit 924df1d

Please sign in to comment.