test 2 #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- synchronize | |
- opened | |
jobs: | |
build: | |
name: Build and lint frontend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm install | |
- name: Copy config file | |
run: cp config.example.js config.js | |
- name: Lint code | |
run: npm run lint | |
- name: Build project | |
run: npx webpack |