Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

make pipeline faster #529

Merged
merged 8 commits into from
May 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: checks

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
paths:
- '.github/workflows/backend.yml'
- 'src-tauri/**'
- '.gitignore'

jobs:
backend:
runs-on: ubuntu-20.04
container: a6543/cabr2_ci:latest
strategy:
fail-fast: true
steps:
- name: Checkout Project
uses: actions/checkout@v2

- name: Set Rust Toolchain
run: rustup default stable

- name: Fix Build
run: mkdir -p dist/CaBr2 && echo "Hello" > dist/CaBr2/index.html

- name: Linting
run: cd src-tauri && cargo clippy -- -D warnings

- name: Build
run: cd src-tauri && cargo build

- name: Tests
run: ./contrib/for-each-cargo test
45 changes: 45 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: checks

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
paths:
- 'src'
- '!src/assets/defaultStrings.json'
- '*.json'
- '*.js'
- '.prettierignore'
- 'yarn.lock'
- '.github/workflows/frontend.yml'

jobs:
frontend:
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
node-version:
- 14
steps:
- name: Checkout Project
uses: actions/checkout@v2

- name: Setup Nodejs
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Check Formatting
run: yarn prettier -c src

- name: Eslint
run: yarn lint

- name: Build Frontend
run: yarn ng build
43 changes: 0 additions & 43 deletions .github/workflows/test.yml

This file was deleted.