From 7671638079798ed8c19ee7d5a15a2fe0b39ec40d Mon Sep 17 00:00:00 2001 From: "tom.coursow" Date: Wed, 12 Jul 2023 16:06:34 +0200 Subject: [PATCH] Added first workflow for lint, build test and deploy --- .gitea/workflows/build.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..1393e0e --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,45 @@ +name: Build +run-name: Build and Test +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Clone Repo + uses: actions/checkout@v3 + - name: Init Environment + uses: actions/setup-node@v3 + with: + node-version: '18' + - name: Install Dependencies + run: npm ci + - name: Lint + run: npm run lint + - name: Build + run: npm run build + - name: Test + run: npm test + deploy: + runs-on: ubuntu-latest + needs: build + steps: + - name: Clone Repo + uses: actions/checkout@v3 + - name: Init Environment + uses: actions/setup-node@v3 + with: + node-version: '18' + - name: Install Dependencies + run: npm ci + - name: Build + run: npm run build + - name: Deploy + run: | + echo Deploying... + sleep 1 + echo ... + sleep 1 + echo ... + sleep 1 + echo DONE! \ No newline at end of file