Fix escaping #{}
in search_items.json (#1728)
#1287
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
mix_test: | |
runs-on: ubuntu-20.04 | |
env: | |
MIX_ENV: test | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- pair: | |
elixir: "1.11" | |
otp: "21" | |
- pair: | |
elixir: "1.14" | |
otp: "26" | |
lint: lint | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.pair.otp}} | |
elixir-version: ${{matrix.pair.elixir}} | |
- name: Install Dependencies | |
run: mix deps.get | |
- run: mix format --check-formatted | |
if: ${{ matrix.lint }} | |
- run: mix deps.unlock --check-unused | |
if: ${{ matrix.lint }} | |
- run: mix deps.compile | |
- run: mix compile --warnings-as-errors | |
if: ${{ matrix.lint }} | |
- run: mix test | |
- name: Prerelease | |
run: test/prerelease.sh | |
- name: Generate docs | |
run: | | |
mix docs | |
test -f doc/index.html && echo "doc/index.html exists." | |
test -f doc/ExDoc.epub && echo "doc/ExDoc.epub exists." | |
check_js: | |
name: Check JS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install --prefix assets | |
- run: npm run --prefix assets lint | |
- run: sudo apt-get install xvfb | |
- run: | | |
xvfb-run --auto-servernum npm run --prefix assets test | |
env: | |
CI: true |