sc-178855: upgrade activesupport #13
Workflow file for this run
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
name: bureaucrat branch | |
on: [pull_request] | |
env: | |
BUNDLER_ACCESS_TOKEN: ${{ secrets.TECH_OPS_ACCESS_TOKEN }} | |
jobs: | |
build: | |
name: Test + Build + Publish | |
runs-on: ubuntu-20.04 | |
env: | |
BUNDLER_ACCESS_TOKEN: ${{ secrets.TECH_OPS_ACCESS_TOKEN }} | |
services: | |
redis: | |
image: redis:4-alpine | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
- name: Configure Gem Cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Setup Tests | |
run: | | |
gem install bundler:1.17.3 | |
bundle config rubygems.pkg.github.com x-access-token:$BUNDLER_ACCESS_TOKEN | |
make setup | |
- name: Test | |
run: make test | |
- name: Publish to GPR | |
run: | | |
mkdir -p $HOME/.gem | |
touch $HOME/.gem/credentials | |
chmod 0600 $HOME/.gem/credentials | |
printf -- "---\n:github: Bearer ${{ secrets.GITHUB_TOKEN }}\n" > $HOME/.gem/credentials | |
SC_PRERELEASE=true gem build *.gemspec | |
gem push -v --KEY github --host https://rubygems.pkg.github.com/sittercity *.gem |