...

Text file src/github.com/googleapis/enterprise-certificate-proxy/.github/workflows/test-signer-darwin.yml

Documentation: github.com/googleapis/enterprise-certificate-proxy/.github/workflows

     1name: Build and Test Signer Darwin
     2
     3on:
     4  push:
     5    branches: [ main ]
     6  pull_request:
     7    branches: [ main ]
     8
     9jobs:
    10
    11  build:
    12    runs-on: macos-latest
    13    steps:
    14    - uses: actions/checkout@v3
    15
    16    - name: Set up Go
    17      uses: actions/setup-go@v4
    18      with:
    19        go-version: 1.19
    20
    21    - name: Build
    22      working-directory: ./internal/signer/darwin
    23      run: go build -v ./...
    24
    25      # The binary must be built before creating credentials so it can be added
    26      # as a trusted application to the keychain.
    27    - name: Build Test Binary
    28      working-directory: ./internal/signer/darwin
    29      run: go test -c ./keychain
    30
    31    - name: Create keychain credentials
    32      run: ./scripts/keychain_cred.sh
    33      
    34    - name: Run Test Binary
    35      working-directory: ./internal/signer/darwin
    36      run: ./keychain.test
    37      
    38    - name: Lint
    39      uses: golangci/golangci-lint-action@v3
    40      with:
    41        version: latest
    42        working-directory: ./internal/signer/darwin
    43        args: -E gofmt --max-same-issues 0
    44
    45    - name: Create Binaries
    46      run: ./build/scripts/darwin_amd64.sh && ./build/scripts/darwin_arm64.sh
    47
    48    - uses: actions/upload-artifact@v3
    49      with:
    50        name: darwin_amd64
    51        path: ./build/bin/darwin_amd64/*
    52
    53    - uses: actions/upload-artifact@v3
    54      with:
    55        name: darwin_arm64
    56        path: ./build/bin/darwin_arm64/*

View as plain text