mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
chore(ci): verify-tools job to check tooling programs
This commit is contained in:
@@ -70,6 +70,26 @@ jobs:
|
|||||||
- name: Build final image
|
- name: Build final image
|
||||||
run: docker build -t final-image .
|
run: docker build -t final-image .
|
||||||
|
|
||||||
|
verify-tools:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version-file: ./devrun/go.mod
|
||||||
|
- run: go test ./...
|
||||||
|
working-directory: ./devrun
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version-file: ./ci/go.mod
|
||||||
|
- run: go test ./...
|
||||||
|
working-directory: ./ci
|
||||||
|
|
||||||
verify-private:
|
verify-private:
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'qdm12/gluetun' &&
|
github.repository == 'qdm12/gluetun' &&
|
||||||
|
|||||||
@@ -262,12 +262,19 @@ func Test_formatCredentialForDump(t *testing.T) {
|
|||||||
provider: "protonvpn",
|
provider: "protonvpn",
|
||||||
vpnType: vpnTypeOpenVPN,
|
vpnType: vpnTypeOpenVPN,
|
||||||
providerCredentials: providerCredentials{
|
providerCredentials: providerCredentials{
|
||||||
OpenVPN: &openvpnCredentials{Username: "user", Password: "pass"},
|
OpenVPN: &openvpnCredentials{
|
||||||
|
Username: "user",
|
||||||
|
Password: "pass",
|
||||||
|
Key: "key",
|
||||||
|
Cert: "cert",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
expectedOutput: "provider: protonvpn\n" +
|
expectedOutput: "provider: protonvpn\n" +
|
||||||
"vpn_type: openvpn\n" +
|
"vpn_type: openvpn\n" +
|
||||||
"username: user\n" +
|
"username: user\n" +
|
||||||
"password: pass",
|
"password: pass\n" +
|
||||||
|
"key: key\n" +
|
||||||
|
"cert: cert\n",
|
||||||
},
|
},
|
||||||
"wireguard": {
|
"wireguard": {
|
||||||
provider: "mullvad",
|
provider: "mullvad",
|
||||||
|
|||||||
Reference in New Issue
Block a user