name: Continuous Integration on: push: branches: [ master ] pull_request: branches: [ master ] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: ๐Ÿ”ง Set up Node uses: actions/setup-node@v1 with: node-version: '14.x' - name: ๐Ÿšง Install Node dependencies run: cd client/web && npm install - name: ๐ŸŒ Build Graphite web code run: cd client/web && npm run build - name: ๐Ÿ‘• Lint Graphite web formatting run: export NODE_ENV=production && cd client/web && npm run lint - name: ๐Ÿ”ฌ Check Rust formatting run: cargo fmt --all -- --check - name: ๐Ÿฆ€ Build Rust code run: cargo build --verbose - name: ๐Ÿงช Run Rust tests run: cargo test --verbose