Skip to content

Commit

Permalink
dynamically determine latest go version
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Apr 19, 2023
1 parent 6595fc9 commit d5a30a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,9 @@ steps:
- name: test-e2e
image: mcr.microsoft.com/playwright:v1.32.3-jammy
commands:
- curl -fsSL https://go.dev/dl/go1.20.3.linux-amd64.tar.gz | tar -xz -C /usr/local
- apt-get -qq update && apt-get -qqy install jq build-essential
- curl -fsSL "https://go.dev/dl/go$(curl -s 'https://go.dev/dl/?mode=json' | jq -r '.[].version' | sort -nr | cut -c 3- | grep 1.20).linux-amd64.tar.gz" | tar -xz -C /usr/local
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea
- apt-get -qq update && apt-get -qqy install build-essential
- ./build/test-env-prepare.sh
- su gitea bash -c "export PATH=$PATH:/usr/local/go/bin && timeout -s ABRT 40m make test-e2e-sqlite"
environment:
Expand Down

0 comments on commit d5a30a7

Please sign in to comment.