Feat/keploy experimental 2 #21
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
name: Keploy | |
on: | |
pull_request: | |
branches: | |
- develop | |
push: | |
branches: | |
- develop | |
jobs: | |
node_linux: | |
runs-on: ubuntu-latest | |
environment: secrets # Ensure you specify the environment if it's an environment-level secret | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Print all environment variables for debugging | |
run: printenv | |
- name: Install dependencies | |
run: yarn install | |
- name: Install nyc | |
run: yarn add [email protected] --dev | |
- name: Install Docker | |
uses: docker/setup-buildx-action@v2 | |
- name: Install Docker Compose | |
run: | | |
mkdir -p $HOME/.docker/cli-plugins | |
curl -L "https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64" -o $HOME/.docker/cli-plugins/docker-compose | |
chmod +x $HOME/.docker/cli-plugins/docker-compose | |
echo "$HOME/.docker/cli-plugins" >> $GITHUB_PATH | |
docker-compose --version | |
- name: Run the node-express-graphql template | |
run: | | |
chmod +x /home/runner/work/node-express-graphql-template/node-express-graphql-template/.github/workflows/test_workflows/keploy.sh | |
/home/runner/work/node-express-graphql-template/node-express-graphql-template/.github/workflows/test_workflows/keploy.sh | |
env: | |
KEPLOY_API_KEY: ${{ secrets.KEPLOY_API_KEY }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/lcov.info | |
verbose: true |