Migrate Jenkins CI to github actions for sift-dotnet git repo #19
Workflow file for this run
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: ciworkflow | |
on: | |
pull_request: | |
branches: | |
- '*' | |
env: | |
# Setting an environment variable with the value of a configuration variable | |
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} | |
API_KEY: ${{ secrets.API_KEY }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.x.x | |
- name: build | |
run: | | |
./build.sh --target=restore | |
./build.sh --target=generate | |
./build.sh --target=build | |
./build.sh --target=test | |
siftDotNetIntegrationTest: | |
runs-on: ubuntu-latest | |
env: | |
PUSH_PACKAGES: ${{ github.event_name == 'pull_request' || github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
if: ${{ env.PUSH_PACKAGES }} | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.x.x | |
- name: siftDotNetIntegrationTest | |
if: ${{ env.PUSH_PACKAGES }} | |
run: | | |
./build.sh --target=restore | |
./build.sh --target=generate | |
./build.sh --target=build | |
./build.sh --target=testNet7 --filter=Account | |
./build.sh --target=testNet7 --filter=Cart | |
./build.sh --target=testNet7 --filter=Chargebacks | |
./build.sh --target=testNet7 --filter=Contents | |
./build.sh --target=testNet7 --filter=LoginLogout | |
./build.sh --target=testNet7 --filter=Notifications | |
./build.sh --target=testNet7 --filter=Order | |
./build.sh --target=testNet7 --filter=Passwords | |
./build.sh --target=testNet7 --filter=Promotions | |
./build.sh --target=testNet7 --filter=Sessions | |
./build.sh --target=testNet7 --filter=Transactions | |
./build.sh --target=testNet7 --filter=Verifications | |
./build.sh --target=testNet7 --filter=DecisionsRequests | |
./build.sh --target=testNet7 --filter=Labels | |
./build.sh --target=testNet7 --filter=MerchantRequests | |
./build.sh --target=testNet7 --filter=Scores | |
./build.sh --target=testNet7 --filter=VerificationsRequests |