From 7a25fdc1e58279c49acf4e0b874363db7771aff3 Mon Sep 17 00:00:00 2001 From: Dennis Henry Date: Thu, 7 Nov 2024 12:52:08 -0500 Subject: [PATCH] chore: move build pipeline to github actions --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 19 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b65c5fa3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30 + + - name: Install dependencies + run: yarn + + - name: Run Build + run: yarn run build + deploy: + runs-on: ubuntu-latest + needs: build + + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30 + + - name: Install dependencies + run: yarn + + - name: Run Deploy + run: sh tools/cdn.sh \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..90e30605 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,19 @@ +name: Build + +on: + push: + branches-ignore: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 at 2024-07-30 + + - name: Install dependencies + run: yarn + + - name: Run Tests + run: yarn run test