Update dependency highlight.js to v11.11.1 (#29) #119
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: Build | |
on: | |
push: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x, 14.x, 15.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache Node.js modules | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
${{ runner.OS }}- | |
- name: npm install | |
run: npm ci | |
- name: swagger-cli bundle | |
run: | | |
npx swagger-cli bundle -o ./daikin.yaml -t yaml ./swagger/swagger.yaml | |
if [ -n "$(git status --porcelain)" ]; then | |
git status --porcelain | |
echo "差分があります" | |
exit 1 | |
fi | |
- name: build html | |
run: | | |
npx bootprint openapi ./daikin.yaml target | |
npx html-inline target/index.html > index.html | |
if [ -n "$(git status --porcelain)" ]; then | |
git status --porcelain | |
echo "差分があります" | |
exit 1 | |
fi | |
- run: npx swagger-cli validate ./daikin.yaml |