name: Check usage of free licenses
on:
  push:
    branches:
      - main
  pull_request:
concurrency:
  group: ${{ github.ref }}
  cancel-in-progress: true
jobs:
  build-static-assets:
    runs-on: ubuntu-latest
    steps:
        - uses: actions/checkout@v4
          with:
            token: ${{ secrets.GITHUB_TOKEN }}
        - uses: ruby/setup-ruby@v1
          with:
            ruby-version: '3.3'
        - name: Install license finder gem
          run: gem install license_finder
        - name: Run license finder
          run: license_finder