https://github.com/brantburnett/run-couchbasefakeit
Runs CouchbaseFakeIt in a Docker container on the build agent, using definition files from your repository.
https://github.com/brantburnett/run-couchbasefakeit
Last synced: 2 months ago
JSON representation
Runs CouchbaseFakeIt in a Docker container on the build agent, using definition files from your repository.
- Host: GitHub
- URL: https://github.com/brantburnett/run-couchbasefakeit
- Owner: brantburnett
- License: mit
- Created: 2020-06-20T20:36:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T01:33:41.000Z (over 2 years ago)
- Last Synced: 2025-02-10T05:25:32.685Z (4 months ago)
- Language: TypeScript
- Size: 735 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# run-couchbasefakeit
Runs [CouchbaseFakeIt](https://github.com/brantburnett/couchbasefakeit) in a Docker container
on the build agent, using definition files from your repository. This allows easy configuration of buckets,
fake data, and indexes to support automated tests.## Example
```yaml
name: Main workflowon:
pull_request:
push:
branches:
- mainjobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run CouchbaseFakeIt
uses: btburnett3/run-couchbasefakeit@v1
with:
couchbase-version: enterprise-6.5.0
couchbase-configuration: example # Folder in your repo with CouchbaseFakeIt configuration
couchbase-username: Administrator
couchbase-password: password
- name: Run Tests
run: 'npm run test' # Couchbase will be available at couchbase://localhost
- name: Run Container
uses: docker://some/container
with:
args: couchbase://${{ env.couchbase_host }} # For a Docker container, you can use the couchbase_host variable
```## Configuration folder
Configuration can include creating Couchbase buckets, using FakeIt to create fake data,
using couchbase-index-manager to create N1QL indexes, and creating FTS indexes. For complete
details, see [CouchbaseFakeIt](https://git.hub.com/brantburnett/couchbasefakeit).For an example, see the [configuration folder](./example) in this repository.