Automated update by SDK Generator #772
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: Unit Test | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install SSL libraries | |
run: | | |
sudo apt-get update | |
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb | |
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb | |
sudo apt-get install -y libssl-dev openssl | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: | | |
3.1.x | |
6.0.x | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
# Look to see if there is a cache hit for the corresponding requirements file | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget | |
- name: Install dependencies | |
run: dotnet restore ./src/gen | |
- name: Build | |
run: dotnet build ./src/gen --configuration Release --no-restore | |
- name: Unit Test | |
run: dotnet test ./src/gen --no-restore | |
- name: Automerge | |
uses: pascalgn/automerge-action@v0.15.3 | |
env: | |
GITHUB_TOKEN: '${{ secrets.GH_API_TOKEN }}' | |
MERGE_LABELS: '' | |
MERGE_METHOD: squash |