Skip to content

Commit

Permalink
fix: change css processing from installation to npm publishing (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Feb 16, 2021
1 parent 20af921 commit 18fddc8
Show file tree
Hide file tree
Showing 5 changed files with 1,558 additions and 47 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr-testing-with-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#We need something more sophisticated long term but for now adding simple tests that just runs the generation
name: Use the template with the generator

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
test:
if: github.event.pull_request.draft == false
name: Generation with generator
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: NODE_ENV=production npm install
- name: Install generator
run: npm i @asyncapi/generator
- name: Run generation
run: node_modules/@asyncapi/generator/cli.js https://raw.githubusercontent.com/asyncapi/generator/v1.1.5/test/docs/dummy.yml ./ -o test/output --force-write
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
node_modules
test/output
output
template/css/main.min.css
Loading

0 comments on commit 18fddc8

Please sign in to comment.