-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.16 KB
/
test-build-refs.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
name: "Test the build-refs js action"
on:
push:
branches:
- '*'
paths:
- ".github/workflows/test-build-refs.yml"
- ".github/actions/build-refs/**/*"
jobs:
check-action:
name: "check build refs action"
runs-on: 'ubuntu-latest'
steps:
- name: Fetch sources
uses: 'actions/checkout@v3'
with:
submodules: false
- name: Set up js
run: |
cd .github/actions/build-refs
npm install
- name: Format
run: |
cd .github/actions/build-refs
npm run format-check
- name: Lint
run: |
cd .github/actions/build-refs
npm run lint
- name: Test
run: |
cd .github/actions/build-refs
npm run test
- name: Update built action
run: |
cd .github/actions/build-refs
npm run build
git update-index --refresh
git config user.name 'Opentrons CI'
git config user.email '[email protected]'
git add dist/index.js || echo "No changes from build"
git commit -m 'update action' && git push || echo "Not pushing build"