mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Clean up CI and CD scripts
This commit is contained in:
parent
5ede7a958c
commit
447f0ec2b9
3 changed files with 27 additions and 19 deletions
22
.github/workflows/cd.yml
vendored
22
.github/workflows/cd.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Graphite Continuous Deployment
|
name: Continuous Deployment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -9,24 +9,26 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Node
|
|
||||||
|
- name: 🔧 Set up Node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: 🚧 Install Node dependencies
|
||||||
run: cd client/web && npm install
|
run: cd client/web && npm install
|
||||||
- name: build node
|
|
||||||
|
- name: 👷 Build Graphite web client
|
||||||
run: cd client/web && npm run build
|
run: cd client/web && npm run build
|
||||||
- name: Deploy 🚀
|
|
||||||
|
- name: 🚀 Deploy web client
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.1
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
||||||
with:
|
with:
|
||||||
branch: deploy # The branch the action should deploy to.
|
branch: deploy
|
||||||
folder: client/web/dist # The folder the action should deploy.
|
folder: client/web/dist
|
||||||
clean: true
|
|
||||||
single-commit: true
|
single-commit: true
|
||||||
git-config-name: Deploy Bot
|
git-config-name: GitHub Actions
|
||||||
|
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -1,8 +1,9 @@
|
||||||
name: Graphite Continuous Integration
|
name: Continuous Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
@ -11,22 +12,27 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup Node
|
|
||||||
|
- name: 🔧 Set up Node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
node-version: '14.x'
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: 🚧 Install Node dependencies
|
||||||
run: cd client/web && npm install
|
run: cd client/web && npm install
|
||||||
- name: build node
|
|
||||||
|
- name: 👷 Build Graphite web client
|
||||||
run: cd client/web && npm run build
|
run: cd client/web && npm run build
|
||||||
- name: Format
|
|
||||||
|
- name: 🔬 Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
- name: Build
|
|
||||||
|
- name: 🦀 Build Rust code
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
|
||||||
|
- name: 🧪 Run Rust tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
|
@ -80,7 +80,7 @@ npm run serve
|
||||||
|
|
||||||
After editing some Rust and TypeScript code, you may need to manually restart the developments server because this is not properly watching all files right now. (Please submit a PR to help fix this!)
|
After editing some Rust and TypeScript code, you may need to manually restart the developments server because this is not properly watching all files right now. (Please submit a PR to help fix this!)
|
||||||
|
|
||||||
You can also use `npm run build` and the static files will end up in `/client/web/dist` as well as `npm run lint`.
|
You can also use `npm run lint` as well as `npm run build` (the static files will end up in `/client/web/dist`).
|
||||||
|
|
||||||
### CLI client
|
### CLI client
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue