Skip to content

Bump to hc 0.4.0-dev.7 #95

Bump to hc 0.4.0-dev.7

Bump to hc 0.4.0-dev.7 #95

Workflow file for this run

name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Fetch source code
uses: actions/checkout@v2
- name: Use Nix
uses: cachix/install-nix-action@v18
with:
install_url: https://releases.nixos.org/nix/nix-2.12.0/install
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Configure Nix substituters
run: |
set -xe
mkdir -p ~/.config/nix/
cp ./.github/nix.conf ~/.config/nix/
- uses: cachix/cachix-action@v10
with:
name: holochain-ci
authToken: '${{ secrets.CACHIX_HOLOCHAIN_CI }}'
- name: Prepare Nix environment
run: nix develop --command bash -c "echo Completed"
- name: Run all tests
run: make nix-test
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check