Skip to content

CI

CI #319

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [master]
schedule:
- cron: '0 6 * * 6'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm test
- run: npm audit --audit-level=moderate --only=prod
- uses: ./
with:
repository: oprypin/find-latest-tag
id: self
- run: |
[[ "${{ steps.self.outputs.tag }}" == v1.* ]]
- uses: ./
with:
repository: oprypin/find-latest-tag
regex: '^[a-z]1\.0'
id: self_re
- run: |
[[ "${{ steps.self_re.outputs.tag }}" == v1.0.5 ]]
- uses: ./
with:
repository: oprypin/find-latest-tag
prefix: 'v1.0'
releases-only: true
id: self_pre
- run: |
[[ "${{ steps.self_pre.outputs.tag }}" == v1.0.5 ]]
- uses: ./
with:
repository: oprypin/test-private-repo
token: ${{ secrets.PERSONAL_TOKEN }}
id: priv
if: github.event_name != 'pull_request'
- run: |
[[ "${{ steps.priv.outputs.tag }}" == v1.3.7 ]]
if: github.event_name != 'pull_request'