From af902c144ecc61f4d54dbdfcd4b4416173bf94f1 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Wed, 25 Jan 2023 20:06:33 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..054c5fd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Test +on: + push: + branches: + - main + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v3 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: latest + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: pnpm + - name: Install dependencies + run: pnpm install --ignore-scripts + - name: Lint + run: pnpm lint + env: + FORCE_COLOR: 2 + - name: Build + run: pnpm build + env: + FORCE_COLOR: 2 + - name: Check size + uses: andresz1/size-limit-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + skip_step: build