diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-26 20:07:06 -0400 |
| commit | 62665656ffc8c20b7913b64dd14f4739bdcf29e7 (patch) | |
| tree | 52893728becf4b7cb7b6b21f36d3a030b33ab376 /.github | |
| parent | 0a566abb1557f1a06723564b080061c06afd5de9 (diff) | |
| download | x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.tar.xz x-62665656ffc8c20b7913b64dd14f4739bdcf29e7.zip | |
chore: reformat the world, set up autoformat on commit
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/dependabot.yml | 24 | ||||
| -rw-r--r-- | .github/workflows/actions-runner-update.yml | 24 | ||||
| -rw-r--r-- | .github/workflows/codeql.yml | 73 | ||||
| -rw-r--r-- | .github/workflows/earthly.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/go-generate.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/go.yml | 108 | ||||
| -rw-r--r-- | .github/workflows/package-builds.yml | 116 |
7 files changed, 182 insertions, 183 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c1901f0..07b3c0f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,14 +1,14 @@ version: 2 updates: -- package-ecosystem: gomod - directory: "/" - schedule: - interval: daily - time: "10:00" - open-pull-requests-limit: 1 -- package-ecosystem: cargo - directory: "/web/mastosan" - schedule: - interval: daily - time: "10:00" - open-pull-requests-limit: 10 + - package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + time: "10:00" + open-pull-requests-limit: 1 + - package-ecosystem: cargo + directory: "/web/mastosan" + schedule: + interval: daily + time: "10:00" + open-pull-requests-limit: 10 diff --git a/.github/workflows/actions-runner-update.yml b/.github/workflows/actions-runner-update.yml index 8cf5635..9870428 100644 --- a/.github/workflows/actions-runner-update.yml +++ b/.github/workflows/actions-runner-update.yml @@ -15,17 +15,17 @@ jobs: build-image: runs-on: alrest-x steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Log into registry - if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 - with: - registry: ghcr.io - username: xe - password: ${{ secrets.GITHUB_TOKEN }} + - name: Log into registry + if: github.event_name != 'pull_request' + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ghcr.io + username: xe + password: ${{ secrets.GITHUB_TOKEN }} - - name: "Build/deploy docker image" - run: | - cd kube/runner-ci - ./build.sh + - name: "Build/deploy docker image" + run: | + cd kube/runner-ci + ./build.sh diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 49be2d0..8c8cc8d 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,11 +13,11 @@ name: "CodeQL" on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] schedule: - - cron: '44 15 * * 4' + - cron: "44 15 * * 4" jobs: analyze: @@ -40,51 +40,50 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go', 'javascript-typescript' ] + language: ["go", "javascript-typescript"] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - - name: Go 1.22 - uses: actions/setup-go@v5 - with: - go-version: '1.22' - check-latest: true + - name: Go 1.22 + uses: actions/setup-go@v5 + with: + go-version: "1.22" + check-latest: true - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v3 - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + # âšī¸ Command-line programs to run using the OS shell. + # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # âšī¸ Command-line programs to run using the OS shell. - # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.github/workflows/earthly.yml b/.github/workflows/earthly.yml index c771a48..1faeec6 100644 --- a/.github/workflows/earthly.yml +++ b/.github/workflows/earthly.yml @@ -2,11 +2,11 @@ name: Docker image updates on: push: - branches: [ "master" ] + branches: ["master"] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + tags: ["v*.*.*"] pull_request: - branches: [ "master" ] + branches: ["master"] jobs: docker-build: @@ -26,7 +26,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} version: "latest" # or pin to an specific version, e.g. "0.8.1" - - name: Log into registry + - name: Log into registry if: github.event_name != 'pull_request' uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: @@ -42,4 +42,4 @@ jobs: if: github.event_name == 'pull_request' id: build run: | - earthly --org me-2625 --sat alpha --ci +all
\ No newline at end of file + earthly --org me-2625 --sat alpha --ci +all diff --git a/.github/workflows/go-generate.yml b/.github/workflows/go-generate.yml index a342330..d5272b0 100644 --- a/.github/workflows/go-generate.yml +++ b/.github/workflows/go-generate.yml @@ -2,7 +2,7 @@ name: Regenerate generated files on: push: - branches: [ "master" ] + branches: ["master"] permissions: pull-requests: write @@ -20,7 +20,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y build-essential - + - uses: Homebrew/actions/setup-homebrew@master - name: Setup Homebrew cellar cache @@ -42,8 +42,8 @@ jobs: - name: Install Brew dependencies run: | - brew bundle - + brew bundle + - name: Generate generated files run: | - go generate ./... ||:
\ No newline at end of file + go generate ./... ||: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index d3579f3..fccae99 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,9 +2,9 @@ name: Go on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] permissions: contents: read @@ -17,64 +17,64 @@ jobs: build: runs-on: alrest-x steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - fetch-tags: true - fetch-depth: 0 + - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-tags: true + fetch-depth: 0 - - name: build essential - run: | - sudo apt-get update - sudo apt-get install -y build-essential + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@master + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master - - name: Setup Homebrew cellar cache - uses: actions/cache@v4 - with: - path: | - /home/linuxbrew/.linuxbrew/Cellar - /home/linuxbrew/.linuxbrew/bin - /home/linuxbrew/.linuxbrew/etc - /home/linuxbrew/.linuxbrew/include - /home/linuxbrew/.linuxbrew/lib - /home/linuxbrew/.linuxbrew/opt - /home/linuxbrew/.linuxbrew/sbin - /home/linuxbrew/.linuxbrew/share - /home/linuxbrew/.linuxbrew/var - key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} - restore-keys: | - ${{ runner.os }}-go-homebrew-cellar- + - name: Setup Homebrew cellar cache + uses: actions/cache@v4 + with: + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - name: Install Brew dependencies - run: | - brew bundle + - name: Install Brew dependencies + run: | + brew bundle - - name: Setup Golang caches - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + - name: Setup Golang caches + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- - - name: Build - run: go build ./... + - name: Build + run: go build ./... - - name: Test - run: go test ./... + - name: Test + run: go test ./... - - name: Log into registry - if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 - with: - registry: ghcr.io - username: xe - password: ${{ secrets.GHCR_PUSH }} + - name: Log into registry + if: github.event_name != 'pull_request' + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ghcr.io + username: xe + password: ${{ secrets.GHCR_PUSH }} - - name: Build docker images - run: go tool yeet + - name: Build docker images + run: go tool yeet diff --git a/.github/workflows/package-builds.yml b/.github/workflows/package-builds.yml index c0371ff..7627b24 100644 --- a/.github/workflows/package-builds.yml +++ b/.github/workflows/package-builds.yml @@ -13,69 +13,69 @@ jobs: package_builds: runs-on: alrest-x steps: - - uses: actions/checkout@v4 - with: - persist-credentials: false - fetch-tags: true - fetch-depth: 0 + - uses: actions/checkout@v4 + with: + persist-credentials: false + fetch-tags: true + fetch-depth: 0 - - name: build essential - run: | - sudo apt-get update - sudo apt-get install -y build-essential + - name: build essential + run: | + sudo apt-get update + sudo apt-get install -y build-essential - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@master + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master - - name: Setup Homebrew cellar cache - uses: actions/cache@v4 - with: - path: | - /home/linuxbrew/.linuxbrew/Cellar - /home/linuxbrew/.linuxbrew/bin - /home/linuxbrew/.linuxbrew/etc - /home/linuxbrew/.linuxbrew/include - /home/linuxbrew/.linuxbrew/lib - /home/linuxbrew/.linuxbrew/opt - /home/linuxbrew/.linuxbrew/sbin - /home/linuxbrew/.linuxbrew/share - /home/linuxbrew/.linuxbrew/var - key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} - restore-keys: | - ${{ runner.os }}-go-homebrew-cellar- + - name: Setup Homebrew cellar cache + uses: actions/cache@v4 + with: + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - name: Install Brew dependencies - run: | - brew bundle + - name: Install Brew dependencies + run: | + brew bundle - - name: Setup Golang caches - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-golang- + - name: Setup Golang caches + uses: actions/cache@v4 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-golang- - - name: Log into registry - if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 - with: - registry: ghcr.io - username: xe - password: ${{ secrets.GHCR_PUSH }} + - name: Log into registry + if: github.event_name != 'pull_request' + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ghcr.io + username: xe + password: ${{ secrets.GHCR_PUSH }} - - name: Build Packages - run: | - go tool yeet + - name: Build Packages + run: | + go tool yeet - - name: Upload released artifacts - env: - GITHUB_TOKEN: ${{ github.TOKEN }} - shell: bash - run: | - cd var - for file in *; do - gh release upload ${{github.event.release.tag_name}} $file - done
\ No newline at end of file + - name: Upload released artifacts + env: + GITHUB_TOKEN: ${{ github.TOKEN }} + shell: bash + run: | + cd var + for file in *; do + gh release upload ${{github.event.release.tag_name}} $file + done |
