diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 7212d40..14b0a17 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -1,13 +1,13 @@ name: End to end tests on: - push: - paths-ignore: - - 'README.md' - branches: - - main - pull_request: - paths-ignore: - - 'README.md' + push: + paths-ignore: + - 'README.md' + branches: + - main + pull_request: + paths-ignore: + - 'README.md' jobs: e2e-tests: @@ -15,12 +15,12 @@ jobs: strategy: fail-fast: false matrix: - include: - - label: "local-encryption" - - label: "remote-auto" - - label: "remote-static" - - label: "remote-https-pinned" - - label: "remote-https-bad-cert" + include: + - label: "local-encryption" + - label: "remote-auto" + - label: "remote-static" + - label: "remote-https-pinned" + - label: "remote-https-bad-cert" steps: - name: Checkout code uses: actions/checkout@v3 @@ -28,8 +28,6 @@ jobs: fetch-depth: 0 - name: Install Go uses: actions/setup-go@v3 - with: - go-version: '^1.19' - name: Run tests env: LABEL: ${{ matrix.label }} diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 98850d2..7ef6360 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -60,4 +60,4 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: ${{ steps.prep.outputs.tags }} \ No newline at end of file + tags: ${{ steps.prep.outputs.tags }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 17f8c14..2a43cd0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,9 +1,10 @@ +--- name: Unit tests on: - push: - branches: - - master - pull_request: + push: + branches: + - master + pull_request: jobs: unit-tests: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..242569f --- /dev/null +++ b/.yamllint @@ -0,0 +1,21 @@ +extends: default + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 150 + level: warning + + # accept both key: + # - item + # + # and key: + # - item + indentation: + indent-sequences: whatever + + truthy: + check-keys: false + + document-start: + present: false \ No newline at end of file diff --git a/Earthfile b/Earthfile index 9eac4e3..96f9211 100644 --- a/Earthfile +++ b/Earthfile @@ -112,3 +112,8 @@ e2e-tests: WITH DOCKER --allow-privileged RUN ./scripts/e2e-tests.sh END + +yamllint: + FROM cytopia/yamllint + COPY . . + RUN yamllint .github/workflows/