diff --git a/.github/workflows/run-prettier.yml b/.github/workflows/run-prettier.yml new file mode 100644 index 0000000..572267d --- /dev/null +++ b/.github/workflows/run-prettier.yml @@ -0,0 +1,29 @@ +name: Prettier Check +on: [pull_request] + +jobs: + prettier: + if: "!contains(github.event.pull_request.title, 'WIP!')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node_modules + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + path: ~/.cache/yarn + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.x" + - name: Install Dependencies + run: yarn install --immutable + - name: Run Prettier + run: yarn prettier --check . diff --git a/.github/workflows/dispath.yml b/.github/workflows/run-release.yml similarity index 94% rename from .github/workflows/dispath.yml rename to .github/workflows/run-release.yml index fb912a9..137b880 100644 --- a/.github/workflows/dispath.yml +++ b/.github/workflows/run-release.yml @@ -1,4 +1,4 @@ -name: Manually trigger deploy to demo site +name: Demo Site Deploy on: workflow_dispatch jobs: diff --git a/.github/workflows/run-typescript.yml b/.github/workflows/run-typescript.yml new file mode 100644 index 0000000..5ce037a --- /dev/null +++ b/.github/workflows/run-typescript.yml @@ -0,0 +1,29 @@ +name: Transpile and Build Check +on: [pull_request] + +jobs: + builds: + if: "!contains(github.event.pull_request.title, 'WIP!')" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Cache node_modules + uses: actions/cache@v4 + env: + cache-name: cache-node-modules + with: + path: ~/.cache/yarn + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "18.x" + - name: Install Dependencies + run: yarn install --immutable + - name: Run Build Command + run: yarn build