generated from int128/typescript-actions-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (52 loc) · 1.51 KB
/
substitute.yaml
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
name: substitute
on:
pull_request:
paths:
- substitute/**
- '*.json'
- .github/workflows/substitute.yaml
push:
branches:
- main
paths:
- substitute/**
- '*.json'
- .github/workflows/substitute.yaml
defaults:
run:
working-directory: substitute
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn test
e2e-test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 20
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
- uses: ./substitute
with:
files: |
${{ github.workspace }}/substitute/tests/fixtures/a/generated.yaml
${{ github.workspace }}/substitute/tests/fixtures/b/generated.yaml
path-variables-pattern: |
${{ github.workspace }}/substitute/tests/fixtures/${service_name}/**
variables: |
DOCKER_IMAGE=123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/deploy-actions/${service_name}:latest
NAMESPACE=develop
- run: git diff