From 8dc2006a6ae7a91b49cca7bfbec29f1e415dd73a Mon Sep 17 00:00:00 2001 From: Kyle Wong <62775956+y3owk1n@users.noreply.github.com> Date: Sun, 7 Apr 2024 15:31:01 +0800 Subject: [PATCH] ci: Apply formatting changes in CI workflow configuration. (#80) --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8184679 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +--- +name: CI +# yamllint disable-line rule:truthy +on: + pull_request: + branches: ["*"] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + strategy: + matrix: + node-version: [20.x] + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + - run: pnpm install + - run: cat .env.example > .env + - run: pnpm lint + - run: pnpm format + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Apply formatting changes + branch: ${{ github.head_ref }}