Denormalize bearer role onto token #2558
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{github.workflow}}-${{github.event.pull_request.number || github.ref}} | |
| cancel-in-progress: true | |
| env: | |
| KEYGEN_LICENSE_FILE: ${{secrets.KEYGEN_LICENSE_FILE}} | |
| KEYGEN_LICENSE_KEY: ${{secrets.KEYGEN_LICENSE_KEY}} | |
| KEYGEN_HOST: api.keygen.sh | |
| KEYGEN_HOSTS: rubygems.pkg.keygen.sh,raw.pkg.keygen.sh,tauri.pkg.keygen.sh,pypi.pkg.keygen.sh,npm.pkg.keygen.sh,oci.pkg.keygen.sh,auth.keygen.sh | |
| SECRET_KEY_BASE: 1b39b6912d39c7dd412d9f5795dd9cdaed7f97d7d02cf0bdac7c9878830b16462af858027e2a51e9c63ff95edd505d461536829bbbce6bfb2db69963c014597a | |
| ENCRYPTION_DETERMINISTIC_KEY: GZ5FU0dXHcFxJVqPVpZSihVVqiScvQNq | |
| ENCRYPTION_PRIMARY_KEY: r9ay7kGB1p7pEtuRQ6r1gSEZhShPonMz | |
| ENCRYPTION_KEY_DERIVATION_SALT: tCf2PKf9LZ6vgfYgf7sAXRg7sDNYj0DP | |
| CF_ACCESS_KEY_ID: test | |
| CF_SECRET_ACCESS_KEY: test | |
| CF_ACCOUNT_ID: test | |
| CF_BUCKET: test | |
| CF_REGION: auto | |
| AWS_ACCESS_KEY_ID: test | |
| AWS_SECRET_ACCESS_KEY: test | |
| AWS_BUCKET: test | |
| AWS_REGION: us-east-2 | |
| DATABASE_URL: postgres://postgres:postgres@localhost:5432 | |
| REPLICA_DATABASE_URL: postgres://postgres:postgres@localhost:5432 | |
| REDIS_URL: redis://localhost:6379 | |
| RAILS_LOG_LEVEL: ${{vars.RAILS_LOG_LEVEL}} | |
| RAILS_ENV: test | |
| DEBUG: ${{vars.DEBUG}} | |
| jobs: | |
| ce: | |
| runs-on: depot-ubuntu-latest-16 | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_DB: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| strategy: | |
| matrix: | |
| TEST_RUNNER: | |
| - rspec | |
| - cucumber | |
| REPLICA_DATABASE_ENABLED: | |
| - '0' | |
| - '1' | |
| env: | |
| KEYGEN_EDITION: CE | |
| KEYGEN_MODE: singleplayer | |
| REPLICA_DATABASE_ENABLED: ${{matrix.REPLICA_DATABASE_ENABLED}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Test | |
| uses: ./.github/actions/test | |
| with: | |
| test-runner: ${{matrix.TEST_RUNNER}} | |
| ee: | |
| runs-on: depot-ubuntu-latest-16 | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_PASSWORD: postgres | |
| POSTGRES_USER: postgres | |
| POSTGRES_DB: postgres | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| clickhouse: | |
| image: clickhouse/clickhouse-server:25.12-alpine | |
| env: | |
| CLICKHOUSE_PASSWORD: clickhouse | |
| CLICKHOUSE_USER: clickhouse | |
| CLICKHOUSE_DB: clickhouse | |
| ports: | |
| - 8123:8123 | |
| redis: | |
| image: redis | |
| ports: | |
| - 6379:6379 | |
| strategy: | |
| matrix: | |
| TEST_RUNNER: | |
| - rspec | |
| - cucumber | |
| KEYGEN_MODE: | |
| - singleplayer | |
| - multiplayer | |
| REPLICA_DATABASE_ENABLED: | |
| - '0' | |
| - '1' | |
| CLICKHOUSE_DATABASE_ENABLED: | |
| - '0' | |
| - '1' | |
| env: | |
| KEYGEN_EDITION: EE | |
| KEYGEN_MODE: ${{matrix.KEYGEN_MODE}} | |
| REPLICA_DATABASE_ENABLED: ${{matrix.REPLICA_DATABASE_ENABLED}} | |
| CLICKHOUSE_DATABASE_URL: clickhouse://clickhouse:clickhouse@localhost:8123 | |
| CLICKHOUSE_DATABASE_ENABLED: ${{matrix.CLICKHOUSE_DATABASE_ENABLED}} | |
| CLICKHOUSE_TLS_DISABLED: '1' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Test | |
| uses: ./.github/actions/test | |
| with: | |
| test-runner: ${{matrix.TEST_RUNNER}} |