Skip to content

Commit

Permalink
Merge pull request #72 from SiftScience/CI-16184
Browse files Browse the repository at this point in the history
Migrate Jenkins CI to github actions for sift-dotnet git repo
  • Loading branch information
pmallampati-sift authored Jun 20, 2024
2 parents 1343c16 + 72e3fac commit 9abca17
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: ciworkflow

on:
push:
branches:
- master
pull_request:
branches:
- master

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
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: siftDotNetIntegrationTest
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

0 comments on commit 9abca17

Please sign in to comment.