mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-31 04:02:10 +08:00
889503ad68
* Require Elixir v1.12 * Update introductory notebook * Update base Docker images * Add completion of reserved module attributes * Move complete_module_attribute/1
34 lines
938 B
YAML
34 lines
938 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-beam@v1
|
|
with:
|
|
otp-version: '24.0'
|
|
elixir-version: '1.12.0'
|
|
- name: Install mix dependencies
|
|
run: mix deps.get
|
|
- name: Check formatting
|
|
run: mix format --check-formatted
|
|
- name: Check warnings
|
|
run: mix compile --warnings-as-errors
|
|
- name: Run tests
|
|
run: elixir --cookie "COOKIEFORTESTS" -S 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: Check assets formatting
|
|
run: npm run format-check --prefix assets
|
|
- name: Run assets tests
|
|
run: npm test --prefix assets
|