An open API service indexing awesome lists of open source software.

https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix

Example of GitHub Actions Workflow which run matrix build dynamically according to changed files in the pull request
https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix

Last synced: 3 months ago
JSON representation

Example of GitHub Actions Workflow which run matrix build dynamically according to changed files in the pull request

Awesome Lists containing this project

README

        

# example-github-actions-dynamic-matrix

[![Build Status](https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix/workflows/test/badge.svg)](https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix/actions)
[![GitHub last commit](https://img.shields.io/github/last-commit/suzuki-shunsuke/example-github-actions-dynamic-matrix.svg)](https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix)
[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/suzuki-shunsuke/example-github-actions-dynamic-matrix/master/LICENSE)

Example of GitHub Actions Workflow which runs a matrix build dynamically according to changed files in the pull request and pull request labels.

This is useful in case of Monorepo.

## Demo

We created some pull requests for the demonstration. Please see [here](https://github.com/suzuki-shunsuke/example-github-actions-dynamic-matrix/pulls?q=is%3Apr+is%3Aopen+label%3Ademo).

## Dependencies

* [akoi](https://github.com/suzuki-shunsuke/akoi)
* [akoi-installer](https://github.com/suzuki-shunsuke/akoi-installer)
* [ci-info](https://github.com/suzuki-shunsuke/ci-info)
* [matchfile](https://github.com/suzuki-shunsuke/matchfile)

## Reference

* GitHub Actions
* [fromJSON - Example returning a JSON object](https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#example-returning-a-json-object)
* [matrix](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix)
* [outputs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs)
* [needs](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds)

## LICENSE

[MIT](LICENSE)