Skip to content

A list of reusable Github Actions used at Oak National Academy

License

Notifications You must be signed in to change notification settings

oaknational/oak-terraform-actions

Repository files navigation

oak-terraform-actions

The actions folder is designed to house reusable GitHub Actions for Terraform, making it easy to manage and share automation across different repositories. See the Example folder to get started.

Structure

actions/
├── terraform-checks/
│   ├── action.yml
│   ├── scripts/ (if any)
│   └── README.md

Terraform Actions 🌍

Terraform Checks

Location: actions/terraform-checks

Purpose: The Terraform Github Action checks your code fits the Oak standards.

Key Features

  • Infrastructure Management: Streamlines Terraform commands in CI/CD pipelines.
  • Ease of Use: Integrates seamlessly with your GitHub workflows.

How to Use

# Example Github Workflow file to run Terraform Check action
name: Terraform Checks

on: [push, pull_request]

jobs:
  example-job:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
      - name: Run Terraform Action from oak-terraform-actions
        uses: oaknational/oak-terraform-actions/actions/terraform-checks/action.yml@main

For more details, visit the Oak Terraform Actions repository.

Commitlint

We're using husky to create pre-commit hooks with commitlint and the conventional commit plugin.

# Example commit that passes
fix(docs): improving documentation

About

A list of reusable Github Actions used at Oak National Academy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •