-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from asnunes/fix/safari-issue
Publish
- Loading branch information
Showing
10 changed files
with
7,785 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish | ||
on: | ||
push: | ||
branches: [main, master] | ||
workflow_dispatch: | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- name: Dependencies installation | ||
run: npm install | ||
- name: Test run | ||
run: npm test | ||
- name: Build | ||
run: npm run build | ||
- name: Publish | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
access: public |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Test | ||
on: | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build test compose | ||
run: | | ||
make test-build | ||
make test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,7 @@ tsconfig.json | |
.prettierrc.js | ||
.tool-versions | ||
.vscode | ||
Dockerfile* | ||
docker-compose* | ||
.github | ||
makefile |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM node:14.17 | ||
WORKDIR /usr/src/mathml-to-latex | ||
RUN npm -g i npm | ||
COPY ./package*.json ./ | ||
RUN npm install | ||
COPY . . |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3.8' | ||
services: | ||
mathml-to-latex-test: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.test | ||
container_name: mathml-to-latex-test | ||
logging: | ||
driver: 'json-file' | ||
options: | ||
max-size: '10m' | ||
max-file: '5' | ||
working_dir: /usr/src/mathml-to-latex | ||
command: | | ||
npm run test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# TEST | ||
test_compose = docker-compose -f docker-compose.test.yml | ||
|
||
.PRONY: test-build | ||
test-build: | ||
$(test_compose) build | ||
|
||
.PRONY: test | ||
test: | ||
make test-build && $(test_compose) run mathml-to-latex-test && make test-down | ||
|
||
.PRONY: test-down | ||
test-down: | ||
$(test_compose) down |
Oops, something went wrong.