Skip to content

Commit

Permalink
Set up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Feb 16, 2021
1 parent 6ac7f94 commit f2f121a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
3 changes: 2 additions & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"deploy": "NODE_ENV=production webpack --mode production",
"watch": "webpack --mode development --watch",
"format": "prettier --trailing-comma es5 --write {js,test,css}/**/*.{js,json,css,scss,md}",
"test": "jest --watch"
"test": "jest",
"test:watch": "jest"
},
"dependencies": {
"marked": "^1.2.8",
Expand Down

0 comments on commit f2f121a

Please sign in to comment.