github.com/thanos-io/thanos@v0.32.5/.github/workflows/mixin.yaml (about)

     1  name: mixin
     2  
     3  on:
     4    push:
     5      branches: [main]
     6    pull_request:
     7      branches: [main]
     8  
     9  jobs:
    10    build:
    11      runs-on: ubuntu-latest
    12      steps:
    13        - name: Checkout code
    14          uses: actions/checkout@v3
    15  
    16        - name: Set up Go
    17          uses: actions/setup-go@v3
    18          with:
    19            go-version: 1.21.x
    20  
    21        - name: Generate
    22          run: make examples
    23  
    24        - name: Check
    25          run: make check-examples
    26  
    27    lint:
    28      runs-on: ubuntu-latest
    29      name: Linters (Static Analysis) for Jsonnet (mixin)
    30      steps:
    31        - name: Checkout code
    32          uses: actions/checkout@v3
    33  
    34        - name: Install Go
    35          uses: actions/setup-go@v3
    36          with:
    37            go-version: 1.21.x
    38  
    39        - name: Format
    40          run: |
    41            make jsonnet-format
    42            git diff --exit-code
    43  
    44        - name: Linting
    45          run: make jsonnet-lint