-
-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (58 loc) · 1.89 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn
- name: Install Dependencies
run: yarn --frozen-lockfile --prefer-offline
- name: Linting
run: yarn lint
- name: Format Source Code
run: yarn format
- name: Unit Tests
run: yarn test
- name: Build
run: |
yarn clean
yarn build
yarn build:wrapper
- name: Integration Test
uses: ./
with:
atmos-version: latest
install-wrapper: true
- name: permissions
run: |
chmod 755 /home/runner/work/github-action-setup-atmos/atmos/atmos
chmod 755 /home/runner/work/github-action-setup-atmos/atmos/atmos-bin
cat -v /home/runner/work/github-action-setup-atmos/atmos/atmos
- name: atmos
id: atmos
run: atmos version
- name: Verify outputs are available
run: |
echo "stdout: ${{ steps.atmos.outputs.stdout }}"
echo "stderr: ${{ steps.atmos.outputs.stderr }}"
echo "exitcode: ${{ steps.atmos.outputs.exitcode }}"
- name: Commit and Push Changes
uses: EndBug/add-and-commit@v9
with:
committer_name: GitHub Action
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
message: "chore: [skip-ci] format code and generate build artifacts"
major-release-tagger:
runs-on: ubuntu-latest
steps:
- uses: cloudposse/github-action-major-release-tagger@v1
with:
dry-run: 'true'