Skip to content

Commit 3bd6007

Browse files
💄 Add a lint job to normalize line endings (#200)
* Add job to normalize line endings * add missing checkout * continue to comment * Update action.yml * normalize line endings
1 parent 97c8782 commit 3bd6007

File tree

4 files changed

+139
-125
lines changed

4 files changed

+139
-125
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Publish a Badges
2-
description: Publishes all badges
3-
inputs:
4-
github_token:
5-
description: The token to use to publish the changes
6-
required: false
7-
default: ${{ github.token }}
8-
runs:
9-
using: composite
10-
steps:
11-
- uses: peaceiris/actions-gh-pages@v3
12-
with:
13-
github_token: ${{ inputs.github_token }}
14-
publish_branch: badges
15-
publish_dir: ./badges
16-
keep_files: true
17-
user_name: "github-actions[bot]"
18-
user_email: "github-actions[bot]@users.noreply.github.com"
1+
name: Publish a Badges
2+
description: Publishes all badges
3+
inputs:
4+
github_token:
5+
description: The token to use to publish the changes
6+
required: false
7+
default: ${{ github.token }}
8+
runs:
9+
using: composite
10+
steps:
11+
- uses: peaceiris/actions-gh-pages@v3
12+
with:
13+
github_token: ${{ inputs.github_token }}
14+
publish_branch: badges
15+
publish_dir: ./badges
16+
keep_files: true
17+
user_name: "github-actions[bot]"
18+
user_email: "github-actions[bot]@users.noreply.github.com"

.github/actions/process-linting-results/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ runs:
1010
- run: git add --update
1111
shell: bash
1212
- id: stage
13+
#continue-on-error: true
1314
uses: dtinth/patch-generator-action@v1
15+
16+
# Unfortunately the previous action reports a failure so nothing else can run
17+
# partially a limitation on composite actions since `continue-on-error` is not
18+
# yet supported
1419
- if: steps.stage.outputs.result == 'dirty'
1520
uses: actions-ecosystem/action-create-comment@v1
1621
with:

.github/workflows/lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,12 @@ jobs:
112112
- uses: ./.github/actions/process-linting-results
113113
with:
114114
linter_name: render-tests
115+
116+
line-ending:
117+
runs-on: ubuntu-20.04
118+
steps:
119+
- uses: actions/checkout@v2
120+
- run: git add --renormalize .
121+
- uses: ./.github/actions/process-linting-results
122+
with:
123+
linter_name: line-ending

.github/workflows/ssl.yml

Lines changed: 107 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
1-
name: SSL Compatibility CI
2-
3-
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
8-
9-
jobs:
10-
openssl:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
openssl:
15-
- { tag: "openssl-3.0.0", name: "3.0.0" }
16-
- { tag: "OpenSSL_1_1_1l", name: "1.1.1l" }
17-
- { tag: "OpenSSL_1_1_0i", name: "1.1.0i" }
18-
- { tag: "OpenSSL_1_0_2u", name: "1.0.2u" }
19-
- { tag: "OpenSSL_1_0_1u", name: "1.0.1u" }
20-
name: OpenSSL ${{ matrix.openssl.name }}
21-
steps:
22-
- uses: actions/checkout@v2
23-
- uses: lukka/get-cmake@latest
24-
- uses: ./.github/actions/install/gtest
25-
- uses: ./.github/actions/install/openssl
26-
with:
27-
version: ${{ matrix.openssl.tag }}
28-
29-
- name: configure
30-
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp
31-
- run: make
32-
- name: test
33-
run: ./tests/jwt-cpp-test
34-
35-
- if: github.event_name == 'push' && always()
36-
uses: ./.github/actions/badge
37-
with:
38-
category: openssl
39-
label: ${{ matrix.openssl.name }}
40-
41-
openssl-no-deprecated:
42-
runs-on: ubuntu-latest
43-
name: OpenSSL 3.0 No Deprecated
44-
steps:
45-
- uses: actions/checkout@v2
46-
- uses: lukka/get-cmake@latest
47-
- uses: ./.github/actions/install/gtest
48-
- uses: ./.github/actions/install/openssl
49-
with:
50-
version: "openssl-3.0.0"
51-
52-
- name: configure
53-
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp -DCMAKE_CXX_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1" -DCMAKE_C_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1"
54-
- run: make
55-
56-
libressl:
57-
runs-on: ubuntu-latest
58-
strategy:
59-
matrix:
60-
libressl: ["3.4.0", "3.3.4", "3.2.6"]
61-
name: LibreSSL ${{ matrix.libressl }}
62-
steps:
63-
- uses: actions/checkout@v2
64-
- uses: lukka/get-cmake@latest
65-
- uses: ./.github/actions/install/gtest
66-
- uses: ./.github/actions/install/libressl
67-
with:
68-
version: ${{ matrix.libressl }}
69-
70-
- name: configure
71-
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=LibreSSL
72-
- run: make
73-
- name: test
74-
run: ./tests/jwt-cpp-test
75-
76-
- if: github.event_name == 'push' && always()
77-
uses: ./.github/actions/badge
78-
with:
79-
category: libressl
80-
label: ${{ matrix.libressl }}
81-
82-
wolfssl:
83-
runs-on: ubuntu-latest
84-
strategy:
85-
matrix:
86-
wolfssl:
87-
- { ref: "v5.0.0-stable", name: "5.0.0" }
88-
name: wolfSSL ${{ matrix.wolfssl.name }}
89-
steps:
90-
- uses: actions/checkout@v2
91-
- uses: lukka/get-cmake@latest
92-
- uses: ./.github/actions/install/gtest
93-
- uses: ./.github/actions/install/wolfssl
94-
with:
95-
version: ${{ matrix.wolfssl.ref }}
96-
97-
- name: configure
98-
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=wolfSSL
99-
- run: make
100-
- name: test
101-
run: ./tests/jwt-cpp-test
102-
103-
- if: github.event_name == 'push' && always()
104-
uses: ./.github/actions/badge
105-
with:
106-
category: wolfssl
107-
label: ${{ matrix.wolfssl.name }}
1+
name: SSL Compatibility CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
openssl:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
openssl:
15+
- { tag: "openssl-3.0.0", name: "3.0.0" }
16+
- { tag: "OpenSSL_1_1_1l", name: "1.1.1l" }
17+
- { tag: "OpenSSL_1_1_0i", name: "1.1.0i" }
18+
- { tag: "OpenSSL_1_0_2u", name: "1.0.2u" }
19+
- { tag: "OpenSSL_1_0_1u", name: "1.0.1u" }
20+
name: OpenSSL ${{ matrix.openssl.name }}
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: lukka/get-cmake@latest
24+
- uses: ./.github/actions/install/gtest
25+
- uses: ./.github/actions/install/openssl
26+
with:
27+
version: ${{ matrix.openssl.tag }}
28+
29+
- name: configure
30+
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp
31+
- run: make
32+
- name: test
33+
run: ./tests/jwt-cpp-test
34+
35+
- if: github.event_name == 'push' && always()
36+
uses: ./.github/actions/badge
37+
with:
38+
category: openssl
39+
label: ${{ matrix.openssl.name }}
40+
41+
openssl-no-deprecated:
42+
runs-on: ubuntu-latest
43+
name: OpenSSL 3.0 No Deprecated
44+
steps:
45+
- uses: actions/checkout@v2
46+
- uses: lukka/get-cmake@latest
47+
- uses: ./.github/actions/install/gtest
48+
- uses: ./.github/actions/install/openssl
49+
with:
50+
version: "openssl-3.0.0"
51+
52+
- name: configure
53+
run: cmake . -DJWT_BUILD_TESTS=ON -DOPENSSL_ROOT_DIR=/tmp -DCMAKE_CXX_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1" -DCMAKE_C_FLAGS="-DOPENSSL_NO_DEPRECATED_3_0=1"
54+
- run: make
55+
56+
libressl:
57+
runs-on: ubuntu-latest
58+
strategy:
59+
matrix:
60+
libressl: ["3.4.0", "3.3.4", "3.2.6"]
61+
name: LibreSSL ${{ matrix.libressl }}
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: lukka/get-cmake@latest
65+
- uses: ./.github/actions/install/gtest
66+
- uses: ./.github/actions/install/libressl
67+
with:
68+
version: ${{ matrix.libressl }}
69+
70+
- name: configure
71+
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=LibreSSL
72+
- run: make
73+
- name: test
74+
run: ./tests/jwt-cpp-test
75+
76+
- if: github.event_name == 'push' && always()
77+
uses: ./.github/actions/badge
78+
with:
79+
category: libressl
80+
label: ${{ matrix.libressl }}
81+
82+
wolfssl:
83+
runs-on: ubuntu-latest
84+
strategy:
85+
matrix:
86+
wolfssl:
87+
- { ref: "v5.0.0-stable", name: "5.0.0" }
88+
name: wolfSSL ${{ matrix.wolfssl.name }}
89+
steps:
90+
- uses: actions/checkout@v2
91+
- uses: lukka/get-cmake@latest
92+
- uses: ./.github/actions/install/gtest
93+
- uses: ./.github/actions/install/wolfssl
94+
with:
95+
version: ${{ matrix.wolfssl.ref }}
96+
97+
- name: configure
98+
run: cmake . -DJWT_BUILD_TESTS=ON -DJWT_SSL_LIBRARY:STRING=wolfSSL
99+
- run: make
100+
- name: test
101+
run: ./tests/jwt-cpp-test
102+
103+
- if: github.event_name == 'push' && always()
104+
uses: ./.github/actions/badge
105+
with:
106+
category: wolfssl
107+
label: ${{ matrix.wolfssl.name }}

0 commit comments

Comments
 (0)