Expose updated_at detail and render correctly (#744) #1213
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: PR Checks | |
on: | |
pull_request: | |
push: { branches: [main] } | |
jobs: | |
backend-checks: | |
# Match Heroku 22 stack | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
cache-version: 1 | |
- name: Update apt | |
run: sudo apt-get update -yqq -o Acquire::Retries=3 | |
- name: Install dependencies | |
run: sudo apt-get install --fix-missing -yqq -o Acquire::Retries=3 libvips libpq-dev | |
- name: Start backing services | |
run: docker compose up -d | |
- name: Run rubocop | |
run: bundle exec rubocop | |
- name: Check i18n files have not changed | |
run: make i18n-format && git diff --quiet || echo "localized strings changed, run 'make i18n-format' and check in the result" | |
- name: Wait for services to come up | |
run: sleep 0 | |
- name: Run specs | |
env: | |
RACK_ENV: test | |
run: | | |
bundle exec rake db:migrate | |
bundle exec rspec spec/ | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: lithictech/suma | |
webapp-checks: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: webapp | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 22.9 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: node- | |
- run: npm install | |
- run: npm run prettier-check | |
- run: npm run eslint-check | |
- run: CI=true npm test | |
adminapp-checks: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: adminapp | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 22.9 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: node- | |
- run: npm install | |
- run: npm run prettier-check | |
- run: npm run eslint-check | |
- run: CI=true npm test |