Skip to content

Commit

Permalink
Modernizing GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswittig committed Dec 11, 2024
1 parent 8a19dc4 commit 4e17c36
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ['ubuntu-latest']
steps:
- uses: 'actions/checkout@v2'
- uses: 'actions/setup-python@v2'
with:
python-version: '3.8'
- name: yamlllint
run: |
pip install yamllint==1.35.1
yamllint module.yml && yamllint test/*.yml
- name: cfn-lint
run: |
pip install cfn-lint==1.20.1
cfn-lint -i W3002 W1011 -t module.yml && cfn-lint -i W3002 W1011 -t test/*.yml
- name: license
run: |
grep -q "LICENSE-2.0" module.yml
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test
on:
push:
branches: [master]
pull_request:
permissions:
id-token: write
contents: read
concurrency:
group: test
cancel-in-progress: false
jobs:
build:
runs-on: ['ubuntu-latest']
steps:
- uses: 'actions/checkout@v2'
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: 'arn:aws:iam::068189904525:role/github-openid-connect'
aws-region: 'eu-west-1'
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: test
run: |
npm ci
cd test
npm ci
CFN_PACKAGE_BUCKET_NAME=cf-templates-1a2zmgbg9ut4o-eu-west-1 npm test
cd -

0 comments on commit 4e17c36

Please sign in to comment.