Skip to content

Commit

Permalink
Migrate Jenkins CI to github actions for sift-dotnet git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pmallampati-sift committed Jun 18, 2024
1 parent 2bac6eb commit 4f8093d
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: ciworkflow

on:
pull_request:
branches: [ "master" ]
push:
branches:
- '*'

env:
# Setting an environment variable with the value of a configuration variable
Expand All @@ -11,9 +12,33 @@ env:

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: Install unzip
run: |
sudo apt-get update
sudo apt-get install -y unzip
- name: Install OpenSSH and Git
run: |
sudo apt-get update && sudo apt-get install -y openssh-client git
- 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 == 'push' && github.ref == 'refs/heads/master' }}
steps:
- if: ${{ env.PUSH_PACKAGES }}
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
Expand All @@ -31,7 +56,6 @@ jobs:
./build.sh --target=restore
./build.sh --target=generate
./build.sh --target=build
./build.sh --target=test
./build.sh --target=testNet7 --filter=Account
./build.sh --target=testNet7 --filter=Cart
./build.sh --target=testNet7 --filter=Chargebacks
Expand Down

0 comments on commit 4f8093d

Please sign in to comment.