mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 19:11:49 +01:00
add testing workflow
This commit is contained in:
parent
ea83df94b7
commit
29e7e5e06e
@ -1,12 +1,9 @@
|
|||||||
name: Build & deploy
|
name: Deploying
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -33,12 +30,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: production-files
|
name: production-files
|
||||||
path: ./build
|
path: ./build
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
@ -52,4 +48,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./build
|
publish_dir: ./build
|
||||||
cname: movie.squeezebox.dev
|
cname: movie.squeezebox.dev
|
2
.github/workflows/linting.yml
vendored
2
.github/workflows/linting.yml
vendored
@ -34,6 +34,6 @@ jobs:
|
|||||||
uses: wearerequired/lint-action@v2
|
uses: wearerequired/lint-action@v2
|
||||||
with:
|
with:
|
||||||
eslint: true
|
eslint: true
|
||||||
eslint_args: src
|
eslint_args: --max-warnings=0 src
|
||||||
eslint_extensions: tsx,ts
|
eslint_extensions: tsx,ts
|
||||||
eslint_auto_fix: false
|
eslint_auto_fix: false
|
30
.github/workflows/testing.yml
vendored
Normal file
30
.github/workflows/testing.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Testing
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- next
|
||||||
|
pull_request:
|
||||||
|
types: [opened, reopened]
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Install Yarn packages
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
|
- name: Build project
|
||||||
|
run: yarn build
|
Loading…
Reference in New Issue
Block a user