Bump YamlDotNet from 11.2.1 to 13.7.1 in /src/CTA.Rules.PortCore #2263
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 Test | |
on: | |
push: | |
branches: | |
- main | |
- release/* | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-2019 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Check for secrets leak on the repo | |
run: | | |
git clone https://github.com/awslabs/git-secrets.git target | |
cd target | |
./install.ps1 | |
echo "Git-secrets installation completed" | |
git secrets --register-aws --global | |
echo "Added aws secret templates" | |
git secrets --scan -r ../ | |
echo "Repository scan completed" | |
- name: Setup .NET Versions | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: | | |
3.1.x | |
5.0.x | |
6.0.x | |
7.0.x | |
- name: Install dependencies | |
run: dotnet restore src/CTA.Rules.sln | |
- name: Build | |
run: dotnet build --configuration Release --no-restore src/CTA.Rules.sln | |
- name: Test | |
run: dotnet test --configuration Release --no-build --no-restore --verbosity normal src/CTA.Rules.sln | |
- name: Pack | |
if: ${{ github.event_name == 'push' }} | |
run: dotnet pack --configuration Release --no-restore -o dist src/CTA.Rules.sln | |
- name: Install Sleet | |
if: ${{ github.event_name == 'push' }} | |
run: dotnet tool install -g sleet --version 3.2.0 | |
- name: "Configure AWS Credentials" | |
if: ${{ github.event_name == 'push' }} | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }} | |
aws-region: us-west-2 | |
- name: Publish | |
if: ${{ github.event_name == 'push' }} | |
run: sleet push dist --source s3Feed --verbose |