Skip to content

Commit

Permalink
Describe how to test the workflows locally
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalaytekin committed Nov 9, 2023
1 parent 19bbfd0 commit 4d38e37
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,35 @@ npm run lint
npm test
```

### Testing the GitHub Actions workflows

This project's GitHub Actions workflows can be tested locally using [nektos/act](https://github.com/nektos/act), which can be installed with Homebrew:

```sh
brew install act
```

To validate the syntax of a workflow:

```sh
# Validate the publishing workflow, by triggering a 'release' event
act --dryrun release
```

```sh
# Validate the testing workflow
act --dryrun push
```

To run the testing workflow locally:

```sh
# Run the testing workflow, with Node.js 18 only
act push --matrix node-version:18
```

Add `--verbose` for more output.

## Support and Migration

Major versions are normally supported for 6 months after their last minor release. This means that patch-level changes will be added and bugs will be fixed. The table below outlines the end-of-support dates for major versions, and the last minor release for that version.
Expand Down

0 comments on commit 4d38e37

Please sign in to comment.