Add @trivago/prettier-plugin-sort-imports plugin for Prettier that au… #10
This file contains 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: Continuous Integration | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run lint | |
run: pnpm run lint | |
- name: Run format check | |
run: pnpm run format | |
- name: Check commit messages | |
uses: wagoid/commitlint-github-action@v5 | |
with: | |
configFile: commitlint.config.cjs | |
- name: Build Docker image | |
run: docker build -t nextjs14cicd:latest . | |
- name: Run Docker container | |
run: docker run -d -p 3000:3000 nextjs14cicd:latest |