Skip to content

Commit

Permalink
Some updating of github tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed Jan 25, 2024
1 parent 8a1f312 commit 68bcb16
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create .env file
run: cat env.example env.development > .env
- name: Load .env file
Expand All @@ -21,4 +21,5 @@ jobs:
- name: Run linter for Ruby
run: bundle exec standardrb
- name: Run tests
run: bundle exec rspec
shell: bash
run: set -o pipefail && bundle exec rspec
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ FROM development AS production

COPY --chown=${UID}:${GID} . /app

RUN --mount=type=secret,id=gh_package_read_token,uid=1000 \
read_token="$(cat /run/secrets/gh_package_read_token)" \
&& BUNDLE_RUBYGEMS__PKG__GITHUB__COM=${read_token} bundle install
RUN --mount=type=secret,id=github_token,uid=1000 \
github_token="$(cat /run/secrets/github_token)" \
&& BUNDLE_RUBYGEMS__PKG__GITHUB__COM=${github_token} bundle install
1 change: 1 addition & 0 deletions spec/aim/hathifiles/updater_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
expect(@connection).not_to receive(:update_from_file)
expect { subject.run }.to raise_error(Faraday::ConnectionFailed)
expect(Pathname.new(subject.scratch_dir)).not_to exist
expect(true).to eq(false)
end
end

0 comments on commit 68bcb16

Please sign in to comment.