diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5d16ce3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +on: [pull_request] + +jobs: + prettier: + runs-on: ubuntu-22.04 + strategy: + fail-fast: true + name: prettier + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Use Node 20 + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install + run: npm ci + - name: Check formatting + run: npm run format:check + + build: + runs-on: ubuntu-22.04 + strategy: + fail-fast: true + name: build + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Use Node 20 + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install + run: npm ci + - name: Build Vitepress + run: npm run build