Files
auto-changelog/.github/workflows/test.yml
T
dependabot[bot]andArdalan Amini fe202a8d3c deps(CI): bump actions/cache from 2 to 3.0.1 (#30)
* deps(CI): bump actions/cache from 2 to 3.0.1

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3.0.1)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update test.yml

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ardalan Amini <[email protected]>
2022-04-10 18:44:52 +04:30

68 lines
1.4 KiB
YAML

name: Test
on: # rebuild any PRs and main branch changes
push:
branches:
- master
pull_request:
workflow_call:
jobs:
build: # make sure build/ci work properly
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ matrix.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm i --no-fund
- name: Check code styles
run: npm run lint
- name: Build using TypeScript
run: npm run build
- name: Package using ncc
run: npm run package
test: # make sure the action works on a clean machine without building
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Changelog
uses: ./
test-with-inputes: # make sure the action works on a clean machine without building
name: Test with inputs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Changelog
uses: ./
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-types: |
feat: Feature
default-commit-type: Default Type