Skip to content

Commit

Permalink
refactor(ci): improve github workflows (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsinis authored Dec 27, 2024
1 parent c8b2673 commit d93a64e
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 30 deletions.
22 changes: 11 additions & 11 deletions .github/code_of_conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
4 changes: 2 additions & 2 deletions .github/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ We use GitHub Issues to track public bugs. Report a bug by [opening a new issue]
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can. [This StackOverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that *anyone* with a base R setup can run to reproduce what I was seeing
- Give sample code if you can. [This StackOverflow question](http://stackoverflow.com/q/12488905/180626) includes sample code that _anyone_ with a base R setup can run to reproduce what I was seeing
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)

People *love* thorough bug reports. I'm not even kidding.
People _love_ thorough bug reports. I'm not even kidding.

## Use a Consistent Coding Style

Expand Down
1 change: 1 addition & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ updates:
versioning-strategy: increase
directories:
- packages/**/*
- packages/*
- tools
schedule:
interval: "weekly"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
uses: pixta-dev/repository-mirroring-action@v1.1.1
with:
target_repo_url: git@gitlab.com:tsinis/sealed_world.git
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/config/auto-assign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ runOnDraft: false
addReviewers: true
addAssignees: author
reviewers:
- tsinis
- tsinis
4 changes: 2 additions & 2 deletions .github/workflows/publish_sealed_countries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
tags:
- 'sealed_countries-v[0-9]+.[0-9]+.[0-9]+*'
- "sealed_countries-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish-sealed-countries:
Expand All @@ -14,4 +14,4 @@ jobs:
id-token: write
with:
package_name: sealed_countries
tag: ${{ github.ref }}
tag: ${{ github.ref }}
4 changes: 2 additions & 2 deletions .github/workflows/publish_sealed_currencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
tags:
- 'sealed_currencies-v[0-9]+.[0-9]+.[0-9]+*'
- "sealed_currencies-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish-sealed-currencies:
Expand All @@ -14,4 +14,4 @@ jobs:
id-token: write
with:
package_name: sealed_currencies
tag: ${{ github.ref }}
tag: ${{ github.ref }}
4 changes: 2 additions & 2 deletions .github/workflows/publish_sealed_languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main]
tags:
- 'sealed_languages-v[0-9]+.[0-9]+.[0-9]+*'
- "sealed_languages-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish-sealed-languages:
Expand All @@ -14,4 +14,4 @@ jobs:
id-token: write
with:
package_name: sealed_languages
tag: ${{ github.ref }}
tag: ${{ github.ref }}
4 changes: 2 additions & 2 deletions .github/workflows/publish_to_pub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ jobs:
if: ${{ github.repository_owner == 'tsinis' && github.actor == 'tsinis' }}
uses: dart-lang/setup-dart/.github/workflows/publish.yml@main
with:
environment: 'pub.dev'
working-directory: packages/${{ inputs.package_name }}
environment: "pub.dev"
working-directory: packages/${{ inputs.package_name }}
5 changes: 3 additions & 2 deletions .github/workflows/publish_world_countries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
push:
branches: [main]
tags:
- 'world_countries-v[0-9]+.[0-9]+.[0-9]+*'
- "world_countries-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish-world-countries:
if: github.ref_type == 'tag'
uses: ./.github/workflows/publish_to_pub.yaml
permissions:
id-token: write
with:
package_name: world_countries
tag: ${{ github.ref }}
tag: ${{ github.ref }}
5 changes: 3 additions & 2 deletions .github/workflows/publish_world_flags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
push:
branches: [main]
tags:
- 'world_flags-v[0-9]+.[0-9]+.[0-9]+*'
- "world_flags-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish-world-flags:
if: github.ref_type == 'tag'
uses: ./.github/workflows/publish_to_pub.yaml
permissions:
id-token: write
with:
package_name: world_flags
tag: ${{ github.ref }}
tag: ${{ github.ref }}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: ✍🏻 Add Reviewer and Author Assign
uses: kentaro-m/auto-assign-action@v2.0.0
with:
configuration-path: '.github/workflows/config/auto-assign.yaml'
configuration-path: ".github/workflows/config/auto-assign.yaml"

pr-title:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days."
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days."
close-pr-message: "This PR was closed because it has been stalled for 14 days with no activity."
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/verify_package_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
uses: codecov/codecov-action@v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ env.relative_path }}/coverage/lcov.info
files: ${{ env.relative_path }}/coverage/lcov.info
flags: ${{ inputs.package_name }}
name: ${{ inputs.package_name }}
override_branch: ${{ github.base_ref }}
Expand Down

0 comments on commit d93a64e

Please sign in to comment.