GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ArmaanT/cdkactions: A CDK for GitHub Actions

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples/typescript
examples/typescript
 
 
packages
packages
 
 
tools
tools
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.versionrc.json
.versionrc.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
lerna.json
lerna.json
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

cdkactions

Release codecov NPM PyPI

A cdk for GitHub Actions. cdkactions allows you to define GitHub Actions workflows and create abstractions in TypeScript and synthesize those workflows into YAML that the GitHub Actions runner expects.

This project was heavily influenced by cdk8s and cdktf.

Contents

  • Overview
  • Why
  • At a glance
  • Validation workflow
  • Library
  • Getting Started
  • Examples
  • License

Overview

cdkactions allows you to define GitHub Action Workflows and Jobs as a tree of constructs which are bundled into a Stack construct and exposed through a toplevel App construct. These constructs can then be synthesized into the actual .yaml configuration that GitHub Actions runs.

Additionally cdkactions optionally provides a GitHub Actions workflow that ensures the synthesized .yaml manifests are up to date with the actual cdkactions configuration.

Why

cdkactions was built because composite actions are too restrictive to be of much use. Currently (as of December 2020) composite actions can't call other actions through uses: which prevents them from caching, uploading artifacts, and more. Here's the most relevant issue about composite actions. cdkactions solves these issues by allowing the user to create a fully-featured Stack that can then be published to npm and used within other cdkactions instances.

On top of that, cdkactions provides additional features like strong type-checking as well as significantly better modularity.

At a glance

demo

Validation workflow

cdkactions provides a validation workflow that ensures .yaml manifests are up to date with cdkactions configuration. This workflow can also push updated manifests when it detects any changes by setting the pushUpdatedManifests flag to true. However, if this option is enabled you must create a GitHub Actions secret called CDKACTIONS_TOKEN that contains a Personal Access Token with the workflow scope (This workaround is required because the default GitHub token doesn't have permission to change workflow files).

Library

cdkactions also contains a library of additional constructs:

  • CheckoutJob - A job that inserts a checkout step as the first step to run.
  • CDKActionsStack - A stack that contains the validation workflow described above.

Getting Started

  • TypeScript

Examples

  • TypeScript

The CI for this repo is also bootstrapped using cdkactions see the config for a more complicated example.

License

This project is distributed under the Apache License, Version 2.0.

About

A CDK for GitHub Actions

Resources

Readme
Apache-2.0 license
Activity

Stars

47 stars

Watchers

2 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.