-
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.65 KB
/
ci.yml
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
name: Continuous Integration
on:
pull_request:
# Note: We only test our internal action locally in the pull request branch to avoid
# actually creating releases for terraform modules in this primary github action
# repository. Thus, we ensure that the "closed" option is not present. Separately,
# we test the action as designed in a separate terraform-module repository.
types: [opened, reopened, synchronize]
branches:
- main
permissions:
contents: write # Required to create tags, creaste releases and update wiki
pull-requests: write # Required to comment on pull requests
jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci --no-fund
- name: Package
id: npm-package
run: npm run package
- name: Test Local Action
id: test-action
uses: ./
with:
major-keywords: major change,breaking change
minor-keywords: feat,feature
patch-keywords: fix,chore,docs
default-first-tag: v1.0.0
disable-wiki: false
wiki-sidebar-changelog-max: 10
delete-legacy-tags: false # Note: We don't want to delete tags in this repository
module-change-exclude-patterns: .gitignore,*.md,*.tftest.hcl,tests/**
module-asset-exclude-patterns: .gitignore,*.md,*.tftest.hcl,tests/**