[Snyk] Security upgrade mysql from 8.0.27 to 8.4.2 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-and-test-windows | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'releases/**' | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
pull_request: | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
branches: | |
- main | |
env: | |
TEST_RESULTS: testbed/tests/results/junit/results.xml | |
# See: https://github.com/actions/cache/issues/810#issuecomment-1222550359 | |
# Cache downloads for this workflow consistently run in under 10 minutes | |
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 15 | |
# Do not cancel this workflow on main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
windows-unittest-matrix: | |
strategy: | |
matrix: | |
group: | |
- receiver-0 | |
- receiver-1 | |
- processor | |
- exporter | |
- extension | |
- internal | |
- other | |
runs-on: windows-latest | |
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run Windows') || github.event_name == 'push') }} | |
steps: | |
- name: Collect Workflow Telemetry | |
if: always() | |
uses: runforesight/foresight-workflow-kit-action@v1 | |
with: | |
api_key: ${{ secrets.FORESIGHT_API_KEY }} | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- if: matrix.group == 'receiver-0' | |
name: install IIS | |
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools | |
- if: matrix.group == 'receiver-0' | |
name: Install Active Directory DS | |
run: Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Cache Go | |
id: go-mod-cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~\go\pkg\mod | |
~\AppData\Local\go-build | |
key: go-build-cache-${{ runner.os }}-${{ matrix.group }}-go-${{ hashFiles('**/go.sum') }} | |
- name: Run Unit tests | |
run: make -j2 gotest GROUP=${{ matrix.group }} | |
- name: Analyze Test and/or Coverage Results | |
if: always() | |
uses: runforesight/foresight-test-kit-action@v1 | |
with: | |
api_key: ${{ secrets.FORESIGHT_API_KEY }} | |
test_framework: golang | |
test_format: text | |
test_path: | | |
./**/foresight-test*.txt | |
windows-unittest: | |
if: ${{ github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'Run Windows') || github.event_name == 'push') }} | |
runs-on: windows-latest | |
needs: [windows-unittest-matrix] | |
steps: | |
- name: Print result | |
run: echo ${{ needs.windows-unittest-matrix.result }} | |
- name: Interpret result | |
shell: bash | |
run: | | |
if [[ success == ${{ needs.windows-unittest-matrix.result }} ]] | |
then | |
echo "All matrix jobs passed!" | |
else | |
echo "One or more matrix jobs failed." | |
false | |
fi |