feat: initialize project #5
This file contains 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: | |
- '**' | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install | |
run: yarn | |
- name: Lint | |
run: yarn run lint:check | |
- name: Prettier | |
run: yarn run prettier:check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install | |
run: yarn | |
- name: Test Action | |
uses: ./ | |
with: | |
cid: QmXWKHN72K3bLnJPt4KhV9qVBUvuptwrD7WK7xjB85ewbk | |
purge: true | |
cloudflareHostname: app.abhfe765123chd9qw.com # TODO: update with dummy Venus hostname | |
cloudflareApiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
cloudflareZoneId: ${{ secrets.CLOUDFLARE_ZONE_ID }} |