jiti-meet/.github/workflows/ci.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

name: Simple CI
2020-03-23 20:15:49 +00:00
on: [pull_request]
jobs:
lint:
name: Lint
2020-03-23 20:15:49 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
2020-03-23 20:15:49 +00:00
with:
node-version: 16
cache: 'npm'
2020-03-23 20:15:49 +00:00
- run: npm install
- name: Check git status
run: git status
2022-01-20 11:44:08 +00:00
- name: Normalize lang files to ensure sorted
run: npm run lang-sort
- name: Check if the git repository is clean
run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
2022-10-20 08:17:57 +00:00
- run: npm run lint:ci
linux-build:
name: Build Frontend (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm install
2022-09-30 19:50:37 +00:00
- run: make
macos-ci:
name: Build Frontend (macOS)
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
2022-09-30 19:50:37 +00:00
with:
node-version: 16
cache: 'npm'
2022-09-30 19:50:37 +00:00
- run: npm install
- run: make