test
This commit is contained in:
parent
3926223d5c
commit
f0665dfaee
39
.github/workflows/main.yml
vendored
39
.github/workflows/main.yml
vendored
@ -1,47 +1,10 @@
|
|||||||
name: Deployment pipeline
|
name: Deployment pipeline
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
name: Lint
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run lint
|
|
||||||
|
|
||||||
test:
|
|
||||||
name: Test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- run: npm install
|
|
||||||
- run: npm test
|
|
||||||
|
|
||||||
build:
|
|
||||||
name: Compile
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run build
|
|
||||||
env:
|
|
||||||
DATOCMS_API_TOKEN: ${{ secrets.DATOCMS_API_TOKEN }}
|
|
||||||
QUIRREL_BASE_URL: doesntmatter.shellphone.app
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: contains('refs/heads/master refs/heads/production', github.ref)
|
if: contains('refs/heads/master refs/heads/production', github.ref)
|
||||||
needs: [lint, test, build]
|
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user