Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github-action): Implement cfn-guard as a Github Action in TS #510

Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
400c05c
feat(github-action): Initial commit of guard TS code
dannyvassallo May 23, 2024
e710d84
feat(github-action): Run lint and begin setting up workflows
dannyvassallo May 23, 2024
47e8ea5
feat(github-action): Move node-version to root
dannyvassallo May 23, 2024
f621a0f
feat(github-action): Update workflow working directory
dannyvassallo May 23, 2024
b552acb
feat(github-action): Update node-version path and reset yaml
dannyvassallo May 23, 2024
cd0d62f
feat(github-action): Rebuild package lock on personal
dannyvassallo May 23, 2024
271686f
feat(github-action): merge compare directories and CI
dannyvassallo May 23, 2024
799aea3
feat(github-action): Rebuild dist
dannyvassallo May 23, 2024
f2b989d
feat(github-action): Should only fail when there are results on PR
dannyvassallo May 23, 2024
62ba123
feat(github-action): Should only run create review when there's viola…
dannyvassallo May 23, 2024
0a28b5c
feat(github-action): Check length of violations
dannyvassallo May 23, 2024
abd03b0
feat(github-action): Update dist
dannyvassallo May 23, 2024
8af5201
feat(github-action): Bump test action workflow
dannyvassallo May 23, 2024
aa96afd
feat(github-action): Remove push check
dannyvassallo May 23, 2024
b9a9cfd
feat(github-action): Remove ts-ignores / update comments / clean up t…
dannyvassallo May 23, 2024
6dbe56c
feat(github-action): Feedback and styling
dannyvassallo May 23, 2024
e6be064
feat(github-action): Rebuild package files
dannyvassallo May 23, 2024
4a35191
feat(github-action): Add more styling based on discussion
dannyvassallo May 23, 2024
99a6e93
feat(github-action): Bump example action to new build
dannyvassallo May 23, 2024
2e53256
feat(github-action): Prettier
dannyvassallo May 23, 2024
30ba217
feat(github-action): Fix test after refactor & rebuild package
dannyvassallo May 23, 2024
6f1ddf6
feat(github-action): Use new package in sample workflow
dannyvassallo May 23, 2024
31d2bd8
feat(github-action): Missed a semicolon
dannyvassallo May 23, 2024
061ff91
feat(github-action): Feedback
dannyvassallo May 24, 2024
bb5a734
feat(github-action): lint
dannyvassallo May 24, 2024
99e1bb8
feat(github-action): Add new line to ci workflow
dannyvassallo May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(github-action): merge compare directories and CI
dannyvassallo committed May 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 271686f84a5d0fad5dfaefed919cf8c8e183149c
25 changes: 25 additions & 0 deletions .github/workflows/action-ci.yml
Original file line number Diff line number Diff line change
@@ -23,3 +23,28 @@ jobs:
- run: npm run lint
- run: npm run test
- run: npm run package
# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
id: diff
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi

# If `dist/` was different than expected, upload the expected version as a
# workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
id: upload
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
76 changes: 0 additions & 76 deletions .github/workflows/check-dist.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/codeql-analysis.yml

This file was deleted.