-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-development-workflow.yml
More file actions
57 lines (50 loc) · 1.56 KB
/
package-development-workflow.yml
File metadata and controls
57 lines (50 loc) · 1.56 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
56
57
# This workflow is going to be used during the development phase of the project
name: Application development workflow
on:
push:
branches:
- 'main' # runs the workflow, once new changes have been integrated to main
pull_request:
workflow_call:
secrets:
APAX_TOKEN:
required: true
inputs:
ref:
required: true
type: string
permissions:
contents: read # required for checkout
packages: read # required for pulling the container
actions: write # required for artifact uploading
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-24.04
container:
image: ghcr.io/simatic-ax/ci-images/apax-ci-image:4.2.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
- name: Login to required registries
uses: simatic-ax/actions/apax-login@v4
with:
apax-token: ${{ secrets.APAX_TOKEN }}
registries: |
https://npm.pkg.github.com/,${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
uses: simatic-ax/actions/apax-install@v4
with:
immutable: true
- name: Build source code
uses: simatic-ax/actions/apax-build@v4
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: 'yes'
base-branch: 'main'