generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.35 KB
/
test.yml
File metadata and controls
55 lines (48 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: 'Test typescript-action'
on:
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout source
- name: Checkout source
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
# Setup Node with npm cache
- name: Setup Node with npm cache
id: node-install
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 #v5.0.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
# allow packages inside this repo to consume from our private npm registry
- name: Authenticate against NPM
run: |
npm config set //npm.pkg.github.com/:_authToken=$GH_TOKEN
npm config list
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_PKG_REGISTRY_READ }}
# Install dependencies
- name: Install dependencies
run: npm ci
env:
HUSKY: 0
# Check code formatting
- name: 'Check code formatting'
run: npm run format:ci
# Check code linting
- name: 'Check code linting'
run: npm run lint:ci
# Build
- name: Build
run: npm run build
- name: Check for Execution
uses: ./
with:
skipOnCommitMsg: 'sample'
- name: Some Job
run: echo "sample"