Skip to content

Commit b6e06a7

Browse files
committed
Update CLI versions in non-generated checks
1 parent 27057df commit b6e06a7

4 files changed

Lines changed: 92 additions & 118 deletions

File tree

.github/workflows/unset-environment-new-cli.yml renamed to .github/workflows/__unset-environment.yml

Lines changed: 11 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/debug-artifacts.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,30 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23-
- os: ubuntu-20.04
24-
version: stable-20210308
25-
- os: macos-latest
26-
version: stable-20210308
27-
- os: ubuntu-20.04
28-
version: stable-20210319
29-
- os: macos-latest
30-
version: stable-20210319
31-
- os: ubuntu-20.04
32-
version: stable-20210809
33-
- os: macos-latest
34-
version: stable-20210809
35-
- os: ubuntu-latest
36-
version: cached
37-
- os: macos-latest
38-
version: cached
39-
- os: ubuntu-latest
40-
version: latest
41-
- os: macos-latest
42-
version: latest
43-
- os: ubuntu-latest
44-
version: nightly-latest
45-
- os: macos-latest
46-
version: nightly-latest
23+
- os: ubuntu-20.04
24+
version: stable-20211005
25+
- os: macos-latest
26+
version: stable-20211005
27+
- os: ubuntu-latest
28+
version: stable-20220120
29+
- os: macos-latest
30+
version: stable-20220120
31+
- os: ubuntu-latest
32+
version: stable-20220401
33+
- os: macos-latest
34+
version: stable-20220401
35+
- os: ubuntu-latest
36+
version: cached
37+
- os: macos-latest
38+
version: cached
39+
- os: ubuntu-latest
40+
version: latest
41+
- os: macos-latest
42+
version: latest
43+
- os: ubuntu-latest
44+
version: nightly-latest
45+
- os: macos-latest
46+
version: nightly-latest
4747
name: Upload debug artifacts
4848
timeout-minutes: 45
4949
runs-on: ${{ matrix.os }}
@@ -81,10 +81,10 @@ jobs:
8181
- name: Check expected artifacts exist
8282
shell: bash
8383
run: |
84-
VERSIONS="stable-20210308 stable-20210319 stable-20210809 cached latest nightly-latest"
84+
VERSIONS="stable-20211005 stable-20220120 stable-20220401 cached latest nightly-latest"
8585
LANGUAGES="cpp csharp go java javascript python"
8686
for version in $VERSIONS; do
87-
if [[ "$version" =~ stable-(20210308|20210319|20210809) ]]; then
87+
if [[ "$version" == stable-20211005 ]]; then
8888
# Note the absence of the period in "ubuntu-2004": this is present in the image name
8989
# but not the artifact name
9090
OPERATING_SYSTEMS="ubuntu-2004 macos-latest"

.github/workflows/unset-environment-old-cli.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: "Test unsetting environment variables"
2+
description: "An end-to-end integration test that unsets some environment variables"
3+
operatingSystems: ["ubuntu"]
4+
steps:
5+
- uses: ./../action/init
6+
with:
7+
db-location: ${{ runner.temp }}/customDbLocation
8+
tools: ${{ steps.prepare-test.outputs.tools-url }}
9+
env:
10+
TEST_MODE: true
11+
- name: Build code
12+
shell: bash
13+
run: env -i PATH="$PATH" HOME="$HOME" ./build.sh
14+
- uses: ./../action/analyze
15+
id: analysis
16+
env:
17+
TEST_MODE: true
18+
- shell: bash
19+
run: |
20+
CPP_DB="${{ fromJson(steps.analysis.outputs.db-locations).cpp }}"
21+
if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${RUNNER_TEMP}/customDbLocation/cpp" ]]; then
22+
echo "::error::Did not create a database for CPP, or created it in the wrong location." \
23+
"Expected location was '${RUNNER_TEMP}/customDbLocation/cpp' but actual was '${CPP_DB}'"
24+
exit 1
25+
fi
26+
CSHARP_DB="${{ fromJson(steps.analysis.outputs.db-locations).csharp }}"
27+
if [[ ! -d "$CSHARP_DB" ]] || [[ ! "$CSHARP_DB" == "${RUNNER_TEMP}/customDbLocation/csharp" ]]; then
28+
echo "::error::Did not create a database for C Sharp, or created it in the wrong location." \
29+
"Expected location was '${RUNNER_TEMP}/customDbLocation/csharp' but actual was '${CSHARP_DB}'"
30+
exit 1
31+
fi
32+
GO_DB="${{ fromJson(steps.analysis.outputs.db-locations).go }}"
33+
if [[ ! -d "$GO_DB" ]] || [[ ! "$GO_DB" == "${RUNNER_TEMP}/customDbLocation/go" ]]; then
34+
echo "::error::Did not create a database for Go, or created it in the wrong location." \
35+
"Expected location was '${RUNNER_TEMP}/customDbLocation/go' but actual was '${GO_DB}'"
36+
exit 1
37+
fi
38+
JAVA_DB="${{ fromJson(steps.analysis.outputs.db-locations).java }}"
39+
if [[ ! -d "$JAVA_DB" ]] || [[ ! "$JAVA_DB" == "${RUNNER_TEMP}/customDbLocation/java" ]]; then
40+
echo "::error::Did not create a database for Java, or created it in the wrong location." \
41+
"Expected location was '${RUNNER_TEMP}/customDbLocation/java' but actual was '${JAVA_DB}'"
42+
exit 1
43+
fi
44+
JAVASCRIPT_DB="${{ fromJson(steps.analysis.outputs.db-locations).javascript }}"
45+
if [[ ! -d "$JAVASCRIPT_DB" ]] || [[ ! "$JAVASCRIPT_DB" == "${RUNNER_TEMP}/customDbLocation/javascript" ]]; then
46+
echo "::error::Did not create a database for Javascript, or created it in the wrong location." \
47+
"Expected location was '${RUNNER_TEMP}/customDbLocation/javascript' but actual was '${JAVASCRIPT_DB}'"
48+
exit 1
49+
fi
50+
PYTHON_DB="${{ fromJson(steps.analysis.outputs.db-locations).python }}"
51+
if [[ ! -d "$PYTHON_DB" ]] || [[ ! "$PYTHON_DB" == "${RUNNER_TEMP}/customDbLocation/python" ]]; then
52+
echo "::error::Did not create a database for Python, or created it in the wrong location." \
53+
"Expected location was '${RUNNER_TEMP}/customDbLocation/python' but actual was '${PYTHON_DB}'"
54+
exit 1
55+
fi

0 commit comments

Comments
 (0)