Sha256: b14eb623fca4ea28caf9dc602f67e7630033ece391ab56cbd35e0c2e25975a05

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

name: CI

on:
  pull_request:
  push:
    branches:
    - main
  workflow_dispatch:

jobs:
  test:
    runs-on: [ubuntu-latest]
    steps:
    - name: Checkout code
      uses: actions/checkout@v4
      with:
        fetch-depth: 0
    - name: Setup Go
      uses: actions/setup-go@v2
      with:
        go-version: '1.21'
    - name: Install Protoc
      uses: arduino/setup-protoc@v2
    - run: git reset --hard
    - run: git clean -f -d
    - run: cd protoc-gen-rails && go test ./...

  build_and_deploy:
    needs: test
    runs-on: [ubuntu-latest]
    steps:
    - name: Checkout code
      uses: actions/checkout@v4
      with:
        fetch-depth: 0
    - name: Setup Go
      uses: actions/setup-go@v2
      with:
        go-version: '1.21'
    - run: git reset --hard
    - run: git clean -f -d
    - name: Run GoReleaser
      uses: goreleaser/goreleaser-action@v3
      with:
        distribution: goreleaser
        version: latest
        workdir: ./protoc-gen-rails
        args: release --clean
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grpc-rest-0.1.5 .github/workflows/CI.yml
grpc-rest-0.1.4 .github/workflows/CI.yml
grpc-rest-0.1.2 .github/workflows/CI.yml