| @@ -2,7 +2,7 @@ jobs: |
| 2 | # Fast feedback: this finishes in seconds, so it is not held behind the |
2 | # Fast feedback: this finishes in seconds, so it is not held behind the |
| 3 | # suite. |
3 | # suite. |
| 4 | build: |
4 | build: |
| 5 | image: localhost/gitbay-ci:2 |
5 | image: localhost/gitbay-ci:3 |
| 6 | steps: |
6 | steps: |
| 7 | - go build ./... |
7 | - go build ./... |
| 8 | - go vet ./... |
8 | - go vet ./... |
| @@ -13,7 +13,7 @@ jobs: |
| 13 | # The 20m is under the runner's own 30m limit, so go times out first and |
13 | # The 20m is under the runner's own 30m limit, so go times out first and |
| 14 | # says which test hung instead of the runner killing it blind. |
14 | # says which test hung instead of the runner killing it blind. |
| 15 | test: |
15 | test: |
| 16 | image: localhost/gitbay-ci:2 |
16 | image: localhost/gitbay-ci:3 |
| 17 | steps: |
17 | steps: |
| 18 | - missing=""; for t in git git-lfs gpg; do command -v "$t" >/dev/null || missing="$missing $t"; done; test -x /usr/sbin/sshd || missing="$missing sshd"; test -z "$missing" || { echo "runner is missing:$missing"; exit 1; } |
18 | - missing=""; for t in git git-lfs gpg; do command -v "$t" >/dev/null || missing="$missing $t"; done; test -x /usr/sbin/sshd || missing="$missing sshd"; test -z "$missing" || { echo "runner is missing:$missing"; exit 1; } |
| 19 | - go test ./... -count=1 -timeout 20m |
19 | - go test ./... -count=1 -timeout 20m |
| @@ -24,9 +24,9 @@ jobs: |
| 24 | # printed without failing it. The CLI is pinned, and unpacked with Python |
24 | # printed without failing it. The CLI is pinned, and unpacked with Python |
| 25 | # because this image has no xz. |
25 | # because this image has no xz. |
| 26 | quality: |
26 | quality: |
| 27 | image: localhost/gitbay-ci:2 |
27 | image: localhost/gitbay-ci:3 |
| 28 | steps: |
28 | steps: |
| 29 | - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp')" |
29 | - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp', filter='data')" |
| 30 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter trufflehog,gofmt |
30 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter trufflehog,gofmt |
| 31 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --no-fail |
31 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --no-fail |
| 32 | paths-ignore: |
32 | paths-ignore: |
| @@ -45,11 +45,11 @@ jobs: |
| 45 | # `build trigger krz/gitbay vuln` runs it on demand before a release |
45 | # `build trigger krz/gitbay vuln` runs it on demand before a release |
| 46 | # (#177). |
46 | # (#177). |
| 47 | vuln: |
47 | vuln: |
| 48 | image: localhost/gitbay-ci:2 |
48 | image: localhost/gitbay-ci:3 |
| 49 | schedule: "0 3 * * *" |
49 | schedule: "0 3 * * *" |
| 50 | steps: |
50 | steps: |
| 51 | - go run golang.org/x/vuln/cmd/govulncheck@latest ./... |
51 | - go run golang.org/x/vuln/cmd/govulncheck@latest ./... |
| 52 | # osv-scanner also reports advisories in dependencies the code does not |
52 | # osv-scanner also reports advisories in dependencies the code does not |
| 53 | # call, which govulncheck skips. |
53 | # call, which govulncheck skips. |
| 54 | - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp')" |
54 | - curl -fsSL -o /tmp/qlty.tar.xz https://qlty-releases.s3.amazonaws.com/qlty/v0.661.0/qlty-x86_64-unknown-linux-gnu.tar.xz && python3 -c "import tarfile; tarfile.open('/tmp/qlty.tar.xz').extractall('/tmp', filter='data')" |
| 55 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter osv-scanner |
55 | - QLTY_TELEMETRY=off /tmp/qlty-x86_64-unknown-linux-gnu/qlty check --all --no-progress --filter osv-scanner |