livebook/.github/workflows/test.yaml
Jonatan Kłosko f2f121a63b Set up CI
2021-02-16 23:37:10 +01:00

28 lines
661 B
YAML

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Erlang & Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: '23.2'
elixir-version: '1.11.3'
- name: Install mix dependencies
run: mix deps.get
- name: Run tests
run: mix test
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Install npm dependencies
run: npm ci --prefix assets
- name: Run tests
run: npm test --prefix assets