Skip to content

Data Table Bot Accounts: Remove PAT panel on destroy #6927

Data Table Bot Accounts: Remove PAT panel on destroy

Data Table Bot Accounts: Remove PAT panel on destroy #6927

Workflow file for this run

name: Ruby CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
timeout-minutes: 15
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14.6
env:
POSTGRES_DB: irida_next_test
POSTGRES_PASSWORD: test
POSTGRES_USER: test
POSTGRES_HOST: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y curl libjemalloc2 libvips
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Set up PNPM
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Set up OpenSearch
uses: ankane/setup-opensearch@v1
with:
opensearch-version: 2
- name: Precompile assets
run: |
bin/rails assets:precompile
- name: Run tests
run: |
bin/rails test:all
- name: Keep screenshots from failed system tests
uses: actions/upload-artifact@v4
if: failure()
with:
name: screenshots
path: ${{ github.workspace }}/tmp/capybara/screenshots
if-no-files-found: ignore
- name: Report coverage
if: github.event_name == 'pull_request'
uses: k1LoW/octocov-action@v1