-
Notifications
You must be signed in to change notification settings - Fork 8
64 lines (60 loc) · 2.01 KB
/
test-url.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
name: Test URL
on:
push:
branches:
- master
paths:
- ".github/workflows/test-url.yml"
- "**.sh"
pull_request:
branches:
- master
paths:
- ".github/workflows/test-url.yml"
- "**desktop.sh"
- "**ros-base.sh"
schedule:
- cron: "5 1 * * 6" # Weekly on Saturdays at 01:05(GMT)
jobs:
kinetic:
strategy:
matrix:
package: [desktop, ros-base]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Verify shorten-URL
env:
PACKAGE_VERSION: ${{ matrix.package }}
run: |
curl -Ls -o run.sh -w %{url_effective} http://u.ty0.jp/ros-kinetic-$PACKAGE_VERSION | tee url.txt
diff run.sh ros-kinetic-$PACKAGE_VERSION.sh
diff -w url.txt <(echo https://raw.githubusercontent.com/Tiryoh/ros_setup_scripts_ubuntu/master/ros-kinetic-$PACKAGE_VERSION.sh)
melodic:
strategy:
matrix:
package: [desktop, ros-base]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Verify shorten-URL
env:
PACKAGE_VERSION: ${{ matrix.package }}
run: |
curl -Ls -o run.sh -w %{url_effective} http://u.ty0.jp/ros-melodic-$PACKAGE_VERSION | tee url.txt
diff run.sh ros-melodic-$PACKAGE_VERSION-main.sh
diff -w url.txt <(echo https://raw.githubusercontent.com/Tiryoh/ros_setup_scripts_ubuntu/master/ros-melodic-$PACKAGE_VERSION-main.sh)
noetic:
strategy:
matrix:
package: [desktop, ros-base]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Verify shorten-URL
env:
PACKAGE_VERSION: ${{ matrix.package }}
run: |
curl -Ls -o run.sh -w %{url_effective} http://u.ty0.jp/ros-noetic-$PACKAGE_VERSION | tee url.txt
diff run.sh ros-noetic-$PACKAGE_VERSION-main.sh
diff -w url.txt <(echo https://raw.githubusercontent.com/Tiryoh/ros_setup_scripts_ubuntu/master/ros-noetic-$PACKAGE_VERSION-main.sh)