generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 864 Bytes
/
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
name: "test"
on:
pull_request:
push:
branches:
- v2
jobs:
# unit tests
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn install
- run: yarn run test
# test action works running from the graph
manual-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: mkdir ./tmp && cp ./test/data/package.json ./tmp
- uses: ./
id: bump-version
with:
work-dir: ./tmp
environment: "ropsten"
branch: ${{ github.ref }}
commit: ${{ github.sha }}
# Print results of action execution to verify them.
- name: Print package.json content
run: cat ./tmp/package.json
- name: Print resolved version
run: echo "Resolved new version ${{ steps.bump-version.outputs.version }}"