1
1
mirror of https://github.com/theoludwig/p61-project.git synced 2024-07-17 07:00:12 +02:00

ci: usage of GitHub Actions

This commit is contained in:
Théo LUDWIG 2024-05-23 23:03:36 +02:00
parent beac8b37dc
commit 15ab592513
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

27
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: "ci"
on:
push:
branches: [develop]
pull_request:
branches: [main, develop, staging]
jobs:
ci:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.6"
- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2"
with:
node-version: "20.x"
cache: "npm"
- run: "npm clean-install"
- run: "npm run expo:typed-routes"
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: "npm run lint:prettier"
- run: "npm run lint:eslint"
- run: "npm run lint:typescript"
- run: "npm run test"