Skip to content

Update actions/checkout digest to 692973e - autoclosed #151

Update actions/checkout digest to 692973e - autoclosed

Update actions/checkout digest to 692973e - autoclosed #151

# 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # 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 }}"