Skip to content

Update dependency eslint to v9 - autoclosed #147

Update dependency eslint to v9 - autoclosed

Update dependency eslint to v9 - autoclosed #147

# IMPORTANT NOTE/WARNING!
# Do not make changes to this file, your changes will be overwritten.
#
# This file is automagically generated from:
# - .github/templates/pull_request.yml.erb
# - Templates contained in the smartlyio/github-actions-templates repository
#
# This file can be updated by editing the template file, and running `devbox render workflows`
name: "Pull Request"
on:
pull_request:
branches: [main]
jobs:
test_action:
runs-on: ubuntu-latest
name: Test OpenAPI spec validation
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: yarn install
run: yarn install
- name: Build distribution
run: yarn clean && yarn dist
- name: Validate valid openapi file
uses: ./
with:
openapi-file: 'fixtures/valid_openapi.yml'
test_unit:
runs-on: ubuntu-latest
name: Run unit tests
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set Node.js 16.x
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: yarn install
run: yarn install
- name: yarn test
run: yarn test
release:
runs-on: ubuntu-22.04
name: "Build and release action"
needs: [test_action, test_unit]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
persist-credentials: true
- name: Configure git
uses: smartlyio/github-actions@git-init-userinfo-v1
- name: Release flow
uses: smartlyio/github-actions@release-action-node-v1
with:
dry_run: true
use_yarn: true
token: "${{ secrets.GITHUB_TOKEN }}"