forked from wagoid/commitlint-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.35 KB
/
Copy pathci.yml
File metadata and controls
45 lines (41 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
name: CI
on: [push]
permissions: {}
jobs:
sanity-checks:
permissions:
contents: read
name: Sanity Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24.19.0'
- uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci --ignore-scripts
- run: npm run lint
- run: npm test -- --ci --coverage
# Upstream's release job ran commit-and-tag-version and pushed to Docker Hub
# using DOCKER_USERNAME/DOCKER_TOKEN. This fork publishes to ghcr.io from a
# pushed tag instead — see .github/workflows/publish-image.yml.
image-builds:
permissions:
contents: read
needs: sanity-checks
name: Image builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: docker build -t commitlint-github-action:ci .