ci: disable GitHub Actions

This commit is contained in:
Anthony Fu 2022-12-14 11:06:39 +01:00
parent 1fd1af214d
commit 762a936793
4 changed files with 3 additions and 6 deletions

1
.github/_workflows/README.md vendored Normal file
View file

@ -0,0 +1 @@
GitHub Actions is temporary disabled as we are reaching the usage limit as a private repo. Tests have been moved to Netlify pipeline as an workaround. We shall recover this once we open up.

36
.github/_workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 16
cache: pnpm
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
- name: 🚧 Set up project
run: pnpm nuxi prepare
- name: 🧪 Test project
run: pnpm test
- name: 📝 Lint
run: pnpm lint
- name: 💪 Type check
run: pnpm test:typecheck

View file

@ -0,0 +1,24 @@
name: Semantic Pull Request
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions: {}
jobs:
main:
permissions:
pull-requests: read # to analyze PRs (amannn/action-semantic-pull-request)
statuses: write # to mark status of analyzed PR (amannn/action-semantic-pull-request)
runs-on: ubuntu-latest
name: Semantic Pull Request
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}