-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
184 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test lodns-action | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04, ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
name: Test lodns-action on ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: lodns-action | ||
uses: ./ | ||
- name: Test server macOS | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
dig @127.0.0.1 -p 5354 A example.lo | ||
ping -c 1 example.lo | ||
- name: Test server Ubuntu | ||
if: matrix.os != 'macos-latest' | ||
run: | | ||
dig A example.lo | ||
ping -c 1 example.lo | ||
test-install-only: | ||
runs-on: ubuntu-latest | ||
name: Test lodns-action install-only | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: lodns-action | ||
uses: ./ | ||
with: | ||
install-only: true | ||
- name: Test lodns binary | ||
run: | | ||
lodns-linux-amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## About | ||
|
||
GitHub Action for [lodns](https://github.com/vandot/lodns), simple DNS server for local development. | ||
___ | ||
|
||
* [Usage](#usage) | ||
* [Customizing](#customizing) | ||
* [inputs](#inputs) | ||
* [Limitation](#limitation) | ||
* [License](#license) | ||
|
||
## Usage | ||
|
||
```yaml | ||
name: example | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
example: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: vandot/lodns-action@v1 | ||
``` | ||
|
||
## Customizing | ||
|
||
### inputs | ||
|
||
Following inputs can be used as `step.with` keys | ||
|
||
| Name | Type | Default | Description | | ||
|---------------|---------|-----------|---------------------------------| | ||
| `version` | String | `0.1.3` | lodns version. Example: `0.1.3` | | ||
| `install-only`| Bool | `false` | just install lodns | | ||
|
||
## Limitation | ||
|
||
This action is not available for Windows [virtual environment]. | ||
`lodns` supports Windows while this action still doesn't. | ||
|
||
## License | ||
|
||
BSD-3-Clause. See `LICENSE` for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters