keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
824 stars 53 forks source link

Add CI/CD #716

Closed ezekg closed 1 year ago

ezekg commented 1 year ago

Related to #644. Looking at GitHub Actions since we're already using GitHub. We should use a matrix for CE/EE and singleplayer/multiplayer tests. For example, we could do something like this:

name: API
on:
  push:
    branches: [master]
jobs:
  test:
    name: test
    runs-on: ubuntu-latest
    strategy:
      matrix:
        edition:
          - CE
          - EE
        mode:
          - singleplayer
          - multiplayer
    env:
      KEYGEN_EDITION: ${{matrix.edition}}
      KEYGEN_MODE: ${{matrix.mode}}
    steps:
      - run: rake test