name: armor-core-icons ci
permissions:
  contents: read # required to checkout the code from the repo

on:
  pull_request:
    branches: ["master"]

jobs:
  pre-commit:
    name: Validation
    uses: cncsc/actions/.github/workflows/validation.yaml@main
    with:
      runPreCommit: true
      runDefaultLinters: false

  ci:
    runs-on: ubuntu-latest
    needs: pre-commit

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Build
        uses: ./.github/templates/ci
        with:
          nodeversion: ${{ vars.NODE_VERSION }}
