github.com/mailru/activerecord@v1.12.2/.github/workflows/makefile.yml (about)

     1  name: Makefile CI
     2  
     3  on:
     4    push:
     5      branches: [ "main" ]
     6    pull_request:
     7      branches: [ "main" ]
     8  
     9  jobs:
    10    test:
    11      runs-on: ubuntu-latest
    12  
    13      steps:
    14      - uses: actions/checkout@v3
    15  
    16      - name: Run test
    17        run: make test
    18  
    19    lint:
    20      runs-on: ubuntu-latest
    21  
    22      steps:
    23        - uses: actions/checkout@v3
    24  
    25        - name: Run lint
    26          run: make full-lint
    27  
    28    golangci:
    29      name: golangci-lint-action
    30      runs-on: ubuntu-latest
    31      steps:
    32        - uses: actions/setup-go@v4
    33          with:
    34            go-version: '1.19'
    35            cache: false
    36        - uses: actions/checkout@v3
    37        - name: golangci-lint
    38          uses: golangci/golangci-lint-action@v3
    39          with:
    40            # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
    41            version: latest
    42  
    43            # Optional: working directory, useful for monorepos
    44            # working-directory: somedir
    45  
    46            # Optional: golangci-lint command line arguments.
    47            #args: --issues-exit-code=0
    48  
    49            # Optional: show only new issues if it's a pull request. The default value is `false`.
    50            # only-new-issues: true
    51  
    52            # Optional: if set to true then the all caching functionality will be complete disabled,
    53            #           takes precedence over all other caching options.
    54            # skip-cache: true
    55  
    56            # Optional: if set to true then the action don't cache or restore ~/go/pkg.
    57            # skip-pkg-cache: true
    58  
    59            # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
    60            # skip-build-cache: true