diff --git a/.github/workflows/front-build-test.yml b/.github/workflows/front-build-test.yml new file mode 100644 index 0000000..b4ff394 --- /dev/null +++ b/.github/workflows/front-build-test.yml @@ -0,0 +1,27 @@ +name: Frontend Build Test + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18.x' + + - name: Change directory + run: cd frontend + + - name: Install Dependencies + run: npm install --frozen-lockfile + + - name: build + run: npm run build \ No newline at end of file diff --git a/.github/workflows/front-lint.yml b/.github/workflows/front-lint.yml new file mode 100644 index 0000000..57d4094 --- /dev/null +++ b/.github/workflows/front-lint.yml @@ -0,0 +1,30 @@ +name: Frontend Lint + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18.x' + + - name: Change directory + run: cd frontend + + - name: Install Dependencies + run: npm ci + + - name: Run next lint + run: yarn run lint + + - name: Run prettier check + run: yarn run prettier:check \ No newline at end of file