-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (34 loc) · 1 KB
/
i18nify-go-ut.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: (i18nify-go) Unit Tests
on:
pull_request:
jobs:
# JOB to run change detection
check-if-i18nify-go:
runs-on: ubuntu-latest
outputs:
modified: ${{ steps.filter.outputs.src }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
src:
- 'packages/i18nify-go/**'
run-test:
name: Run Unit Tests
runs-on: ubuntu-latest
needs: check-if-i18nify-go
if: |
needs.check-if-i18nify-go.outputs.modified == 'true' && !(github.head_ref == 'changeset-release/master' && github.actor == 'rzpcibot') &&
!contains(github.event.head_commit.message, '[skip ci]')
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Run Unit Tests
run: |
cd $GITHUB_WORKSPACE/packages/i18nify-go
go test -v github.com/razorpay/i18nify/packages/i18nify-go/modules/...