-
-
Notifications
You must be signed in to change notification settings - Fork 28
39 lines (35 loc) · 1.02 KB
/
shared.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
38
39
name: Shared
on:
pull_request:
push:
branches:
- main
jobs:
check_applicability:
name: Check applicability
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths: '["shared/**", ".github/workflows/shared.yml"]'
skip_after_successful_duplicate: "false"
do_not_skip: '["push"]'
test:
name: Test shared code
needs: check_applicability
if: needs.check_applicability.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize repository
uses: ./.github/workflows/actions/init
- name: Run tests
env:
TWILIO_SID: ${{ secrets.TWILIO_TEST_SID }}
TWILIO_TOKEN: ${{ secrets.TWILIO_TEST_TOKEN }}
TWILIO_SENDER_PHONE: ${{ secrets.TWILIO_TEST_SENDER_PHONE }}
run: npm run shared:test