This repository was archived by the owner on Feb 7, 2026. It is now read-only.
Merge pull request #620 from NdoleStudio/dependabot/github_actions/ac… #458
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| app: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: ./web | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [16] | |
| steps: | |
| - name: Checkout 🛎 | |
| uses: actions/checkout@master | |
| - name: Setup node env 🏗 | |
| uses: actions/setup-node@v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| - name: Get yarn cache directory path 🛠 | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - name: Cache node_modules 📦 | |
| uses: actions/cache@v4.3.0 | |
| id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies 👨🏻💻 | |
| run: yarn | |
| - name: Run linter 👀 | |
| run: yarn lint | |
| - name: Run tests 🧪 | |
| run: yarn test | |
| - name: Build 🏗️ | |
| run: mv .env.production .env && yarn generate | |
| - name: Deploy 🚀 | |
| uses: cloudflare/pages-action@1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: superbutton | |
| directory: web/dist | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| widget: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: widget | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [16] | |
| steps: | |
| - name: Checkout 🛎 | |
| uses: actions/checkout@master | |
| - name: Setup node env 🏗 | |
| uses: actions/setup-node@v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| - name: Get yarn cache directory path 🛠 | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - name: Cache node_modules 📦 | |
| uses: actions/cache@v4.3.0 | |
| id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies 👨🏻💻 | |
| run: yarn | |
| - name: Run linter 👀 | |
| run: yarn lint | |
| - name: Run tests 🧪 | |
| run: yarn test:unit | |
| - name: Copy Icons 🔗 | |
| run: rm -rf ./public/icons && cp -r ../web/static/icons ./public | |
| - name: Build 🏗️ | |
| run: mv .env.production .env && yarn build | |
| - name: Deploy 🚀 | |
| uses: cloudflare/pages-action@1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: superbutton-cdn | |
| directory: widget/dist | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| website: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: ./website | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: [16] | |
| steps: | |
| - name: Checkout 🛎 | |
| uses: actions/checkout@master | |
| - name: Setup node env 🏗 | |
| uses: actions/setup-node@v6.1.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| check-latest: true | |
| - name: Get yarn cache directory path 🛠 | |
| id: yarn-cache-dir-path | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - name: Cache node_modules 📦 | |
| uses: actions/cache@v4.3.0 | |
| id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
| with: | |
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies 👨🏻💻 | |
| run: yarn | |
| - name: Run linter 👀 | |
| run: yarn lint | |
| - name: Run tests 🧪 | |
| run: yarn test | |
| - name: Build 🏗️ | |
| run: mv .env.production .env && yarn generate | |
| - name: Deploy 🚀 | |
| uses: cloudflare/pages-action@1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: superbutton-website | |
| directory: website/dist | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} |