-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (84 loc) · 2.9 KB
/
pr-checker.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: PR-check
run-name: ${{ github.actor }} PR checker
on: [push]
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: pe-utils-'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
run-shellcheck:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: shellcheck --version
- name: Shellcheck fw-tools/edge-testnet
run: |
shellcheck fw-tools/edge-testnet
fw-tools/edge-testnet
- run: shellcheck edge-info/edge-info
- run: cat /etc/os-release
- run: edge-info/edge-info
run-identity-tool-tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run identity-tools tests
run: |
cd identity-tools/test-cases
./test.sh
- name: Create one developer identity-tools
run: |
cd identity-tools/developer_identity
./create-dev-identity.sh -h
./create-dev-identity.sh -d -w CI-test
run-pysh-check:
runs-on: ubuntu-22.04
env:
PA_TOKEN: ${{ secrets.ACCESS_TOKEN }} # IzumaBOT Access Token
steps:
- uses: actions/checkout@v3
# Install pyshcheck tooling
- run: sudo apt install pycodestyle pydocstyle black
# git instead of rules to use access token
- run: git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:"
- run: git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf "https://github"
- run: git config --list
# Linux coreutils is already installed wc -command can be found.
- run: git clone [email protected]:PelionIoT/scripts-internal.git
#- run: git clone https://github.com/PelionIoT/scripts-internal.git
- run: echo "." >scripts-internal/.nopyshcheck
- run: .github/workflows/pysh-checker.sh ${{ github.event.repository.default_branch }} ${{ github.ref_name }}
run-edge-testnet:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run edge-testnet
run: fw-tools/edge-testnet
versions-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: ./check_versions.sh
misspell:
runs-on: ubuntu-22.04
steps:
- name: Run misspell (findings may not increase)
run: |
curl -L -o ./install-misspell.sh https://git.io/misspell
sh ./install-misspell.sh
bin/misspell -i mosquitto
run-edge-info:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: |
cd edge-info
./edge-info
out=$(./edge-info)
# If we find \u* anything in the output,
# likely a echo -e mistake
if echo "$out" | grep -q "\\\\u"; then
echo "The string contains \\u"
echo "Likely a echo -e mistake"
exit 1
fi