-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (44 loc) · 1.27 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
pull_request:
workflow_dispatch:
env:
NODE_VERSION: 20
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Fail test
continue-on-error: true
uses: ./
with:
path: tests
- run: npm version patch --force
working-directory: ./tests
- name: Success test
id: test
uses: ./
with:
path: tests
- run: |
echo "name: ${{ steps.test.outputs.name }}"
echo "version: ${{ steps.test.outputs.version }}"
echo "release: ${{ steps.test.outputs.release }}"
if [[ "${{ steps.test.outputs.name }}" != "check-version-test" ]]; then
echo "The name output is not correct"
exit 1
fi
if [[ "${{ steps.test.outputs.version }}" != "0.0.1" ]]; then
echo "The version output is not correct"
exit 1
fi
if [[ "${{ steps.test.outputs.release }}" != "check-version-test_v0.0.1+build.2.zip" ]]; then
echo "The release output is not correct"
exit 1
fi