-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (33 loc) · 1 KB
/
external-test.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
40
41
42
43
name: Test Package External
on:
pull_request:
branches:
- main
jobs:
external_test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
- name: Checkout code
uses: actions/checkout@v4
with:
path: build-tar
- run: npm ci
working-directory: build-tar
- run: npm run build
working-directory: build-tar
- id: pack_tar
run: echo "tar_name=$(npm pack)" >> $GITHUB_OUTPUT
working-directory: build-tar
- uses: actions/checkout@v4
with:
repository: EmandM/import-test
path: external-test
- run: npm ci
working-directory: external-test
- run: npm uninstall ts-mock-imports # Ensure no contamination from existing
working-directory: external-test
- run: npm install ${{ github.workspace }}/build-tar/${{ steps.pack_tar.outputs.tar_name }}
working-directory: external-test
- run: npm test
working-directory: external-test