Skip to content

Commit

Permalink
refactor: change env
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuki-joto committed Nov 7, 2023
1 parent efa914c commit e081e0e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,8 @@ on:
type: string
required: false
default: 3.0.6
secrets:
github-token:
required: true

env:
DB_HOSTNAME: 127.0.0.1
DATABASE_PORT: 5432
DB_USERNAME: postgres
DB_PASSWORD: postgres
RAILS_ENV: test
IMAGEMAGICK_SRC: 7.1.0-50.tar.gz
SLACK_API_TOKEN: xoxb-dummy
SLACK_MESSAGE_CHANNEL: '#test'
permissions: write-all

jobs:
rubocop:
Expand All @@ -45,6 +34,15 @@ jobs:
unittest:
name: Unit Test
runs-on: ubuntu-latest
env:
DB_HOSTNAME: 127.0.0.1
DATABASE_PORT: 5432
DB_USERNAME: postgres
DB_PASSWORD: postgres
RAILS_ENV: test
IMAGEMAGICK_SRC: 7.1.0-50.tar.gz
SLACK_API_TOKEN: xoxb-dummy
SLACK_MESSAGE_CHANNEL: '#test'
services:
db:
image: postgres:12.14
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,3 @@ jobs:
check:
name: Check
uses: ./.github/workflows/_check.yaml
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
check:
name: Check
uses: ./.github/workflows/_check.yaml
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

release:
uses: ./.github/workflows/_release.yaml
Expand Down

0 comments on commit e081e0e

Please sign in to comment.