-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (81 loc) · 2.23 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# name: CI
# on:
# workflow_dispatch: {}
# push:
# branches:
# - main
# - beta
# - sdk-release/**
# - feature/**
# tags:
# - v[0-9]+.[0-9]+.[0-9]+*
# pull_request:
# branches:
# - main
# - beta
# - sdk-release/**
# - feature/**
# jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.1
# - name: Lint
# run: bundle install && bundle exec rake rubocop
# - name: Build
# run: gem build asaas.gemspec
# - name: 'Upload Artifact'
# uses: actions/upload-artifact@v3
# with:
# name: gems
# path: '*.gem'
# test:
# name: Test (${{ matrix.ruby-version }})
# runs-on: ubuntu-latest
# strategy:
# matrix:
# ruby-version: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, jruby-9.4.0.0, truffleruby-head]
# steps:
# - uses: actions/checkout@v3
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby-version }}
# - uses: asaas/openapi/actions/asaas-mock@main
# - name: test
# run: make ci-test
# env:
# GITHUB_TOKEN: ${{ secrets.github_token }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
# COVERALLS_SERVICE_NAME: github-action
# publish:
# name: Publish
# if: >-
# ((github.event_name == 'workflow_dispatch') || (github.event_name == 'push')) &&
# startsWith(github.ref, 'refs/tags/v') &&
# endsWith(github.actor, '-asaas')
# needs: [build, test]
# runs-on: ubuntu-latest
# steps:
# - name: Download all workflow run artifacts
# uses: actions/download-artifact@v3
# with:
# name: gems
# path: gems
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.1
# - name: Publish gems to Rubygems
# run: gem push gems/*.gem
# env:
# GEM_HOST_API_KEY: ${{secrets.GEM_HOST_API_KEY}}
# - uses: asaas/openapi/actions/notify-release@main
# if: always()
# with:
# bot_token: ${{ secrets.SLACK_BOT_TOKEN }}