From 4dc456751639146ee450e4425d8d2d2147470a8c Mon Sep 17 00:00:00 2001 From: huanghs Date: Tue, 1 Aug 2023 16:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/multiple.?= =?UTF-8?q?yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/multiple.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/multiple.yml diff --git a/.gitea/workflows/multiple.yml b/.gitea/workflows/multiple.yml new file mode 100644 index 0000000..44af8c4 --- /dev/null +++ b/.gitea/workflows/multiple.yml @@ -0,0 +1,39 @@ +name: Gitea Actions Demo +on: [push] +jobs: + setup: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + volumes: + - ubuntu_hostedtoolcache:/opt/hostedtoolcache + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Pnpm + uses: pnpm/action-setup@v2 + with: + version: 7 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + + - run: pnpm -v + - run: pnpm install + build: + needs: setup + runs-on: ubuntu-latest + steps: + - run: pnpm -v + - run: pnpm install + + build-test: + needs: setup + runs-on: ubuntu-latest + steps: + - run: pnpm -v + - run: pnpm install