main.yml 960 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: Build and Deploy
  2. on: [push, pull_request, pull_request_target]
  3. jobs:
  4. yamllint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: Checkout
  8. uses: actions/checkout@master
  9. - name: Yamllint
  10. uses: ibiqlik/action-yamllint@v3
  11. with:
  12. file_or_dir: games/*.yaml originals/*.yaml schema/*.yaml
  13. env:
  14. GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  15. build-and-deploy:
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@master
  20. - name: Install poetry
  21. run: pipx install poetry
  22. - name: Setup Python
  23. uses: actions/setup-python@v4
  24. with:
  25. python-version: '3.8'
  26. cache: 'poetry'
  27. - name: Build
  28. run: |
  29. make ci
  30. test 6000 -lt $(cat _build/index.html | wc -l)
  31. yarn install
  32. yarn danger ci
  33. env:
  34. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  35. DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}