-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into reusable-workflow-docs
- Loading branch information
Showing
13 changed files
with
66 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
name: StandardRB | ||
|
||
on: [push] | ||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: StandardRB Linter | ||
uses: andrewmcodes/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
RUBY_VERSION: 2.7 | ||
- name: Check out the repo | ||
uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' | ||
bundler-cache: true | ||
- name: Install StandardRB | ||
run: gem install standard | ||
- name: Run StandardRB | ||
run: standardrb |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for tests to succeed | ||
uses: lewagon/wait-on-check-action@v1.0.0 | ||
uses: lewagon/wait-on-check-action@v1.2.0 | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Run tests' | ||
|
@@ -45,6 +45,29 @@ jobs: | |
... | ||
``` | ||
|
||
## GHE Support | ||
|
||
For GHE support you just need to pass in `api-endpoint` as an input. | ||
|
||
```yml | ||
name: Publish | ||
|
||
on: [push] | ||
|
||
jobs: | ||
publish: | ||
name: Publish the package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for tests to succeed | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Run tests' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
api-endpoint: YOUR_GHE_API_BASE_URL # Fed to https://octokit.github.io/octokit.rb/Octokit/Configurable.html#api_endpoint-instance_method | ||
... | ||
``` | ||
## Alternatives | ||
|
||
If you can keep the dependent jobs in a single workflow: | ||
|
@@ -104,7 +127,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- name: Wait for tests to succeed | ||
uses: lewagon/wait-on-check-action@v1.0.0 | ||
uses: lewagon/wait-on-check-action@v1.2.0 | ||
with: | ||
ref: master | ||
check-name: test | ||
|
@@ -168,7 +191,7 @@ jobs: | |
To inspect the names as they appear to the API: | ||
|
||
```bash | ||
curl -i -u username:$token \ | ||
curl -u username:$token \ | ||
https://api.github.com/repos/OWNER/REPO/commits/REF/check-runs \ | ||
-H 'Accept: application/vnd.github.antiope-preview+json' | jq '[.check_runs[].name]' | ||
``` | ||
|
@@ -188,7 +211,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for other checks to succeed | ||
uses: lewagon/wait-on-check-action@v1.0.0 | ||
uses: lewagon/wait-on-check-action@v1.2.0 | ||
with: | ||
ref: ${{ github.ref }} | ||
running-workflow-name: 'Publish the package' | ||
|
@@ -244,7 +267,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for tests to succeed | ||
uses: lewagon/wait-on-check-action@v1.0.0 | ||
uses: lewagon/wait-on-check-action@v1.2.0 | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Run tests' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class ApplicationService | ||
def self.call(*args, &block) | ||
new(*args, &block).call | ||
def self.call(...) | ||
new(...).call | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters