diff --git a/.github/workflows/frontend-ci.yaml b/.github/workflows/frontend-ci.yaml index 8b137891..cf9c1dd6 100644 --- a/.github/workflows/frontend-ci.yaml +++ b/.github/workflows/frontend-ci.yaml @@ -1 +1,33 @@ +# Setup an action to run the frontend CI for PRs +# name of the action +name: Frontend CI + +# when should it run +on: + pull_request: + branches: + - main + +# what should it do +jobs: + # name of the job + build: + # what should it run on + runs-on: ubuntu-latest + # default values for all the steps + defaults: + run: + working-directory: frontend + steps: + - uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '22' + - name: Install dependencies + run: npm install + - name: Run tests + run: npm test + - name: Run build + run: npm run build