Skip to content

Bump eslint-plugin-github from 4.3.3 to 4.8.0 #335

Bump eslint-plugin-github from 4.3.3 to 4.8.0

Bump eslint-plugin-github from 4.3.3 to 4.8.0 #335

Workflow file for this run

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- master
- 'releases/*'
workflow_dispatch:
env:
MYGITHUBTOKEN: '${{ secrets.TOKEN_FOR_ACTIONSDEMO }}'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: '${{ secrets.SQL_SERVER_PASSWORD }}'
MSSQL_PID: Standard
ports:
- 1433:1433
steps:
- uses: actions/checkout@v2
- name: Download artifact from a github workflow
uses: benday-inc/download-latest-artifact@main
with:
token: '${{ env.MYGITHUBTOKEN }}'
repository_owner: 'benday'
repository_name: 'actionsdemo'
workflow_name: 'build'
branch_name: 'master'
artifact_name: 'build-output'
download_path: '${{ github.workspace }}/temp'
download_filename: 'actionsdemo-artifact.zip'
- name: mkdir for unzipped artifact
run: mkdir '${{ github.workspace }}/actionsdemo-artifact'
- name: unzip artifact
run: unzip '${{ github.workspace }}/temp/actionsdemo-artifact.zip' -d '${{ github.workspace }}/actionsdemo-artifact'
- name: Edit .net core database connection string in appsettings.json
uses: benday-inc/edit-dbconnstr-in-appsettings@main
with:
name: 'default'
connectionstring: 'Server=localhost; Database=Benday.Demo123; User Id=sa; Password=${{ secrets.SQL_SERVER_PASSWORD }};'
pathtosettingsfile: '${{ github.workspace }}/actionsdemo-artifact/appsettings.json'
- name: get PWD
run: pwd
- name: run an ls -l
run: ls -lR
working-directory: '${{ github.workspace }}'
- run: |
npm install
working-directory: '${{ github.workspace }}/actionsdemo-artifact'
- run: |
npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: '${{ secrets.SQL_SERVER_PASSWORD }}'
MSSQL_PID: Standard
ports:
- 1433:1433
steps:
- uses: actions/checkout@v2
- name: Download artifact from a github workflow
uses: benday-inc/download-latest-artifact@main
with:
token: '${{ env.MYGITHUBTOKEN }}'
repository_owner: 'benday'
repository_name: 'actionsdemo'
workflow_name: 'build'
branch_name: 'master'
artifact_name: 'build-output'
download_path: '${{ github.workspace }}/temp'
download_filename: 'actionsdemo-artifact.zip'
- name: mkdir for unzipped artifact
run: mkdir '${{ github.workspace }}/actionsdemo-artifact'
- name: unzip artifact
run: unzip '${{ github.workspace }}/temp/actionsdemo-artifact.zip' -d '${{ github.workspace }}/actionsdemo-artifact'
- name: Edit .net core database connection string in appsettings.json
uses: benday-inc/edit-dbconnstr-in-appsettings@main
with:
name: 'default'
connectionstring: 'Server=localhost; Database=Benday.Demo123; User Id=sa; Password=${{ secrets.SQL_SERVER_PASSWORD }};'
pathtosettingsfile: '${{ github.workspace }}/actionsdemo-artifact/appsettings.json'
- name: run an ls -l
run: ls -lR
working-directory: '${{ github.workspace }}'
- uses: ./
with:
path_to_directory: '${{ github.workspace }}/actionsdemo-artifact'
migrations_dll: 'Benday.Demo123.Api.dll'
migrations_namespace: 'Benday.Demo123.Api'
startup_dll: 'Benday.Demo123.WebUi.dll'
dbcontext_class_name: 'MyDbContext'
automerge:
name: Merge pull request
runs-on: [ubuntu-latest]
needs: [build, test]
if: github.base_ref == 'main' && github.actor == 'dependabot[bot]'
steps:
- name: Merge
uses: actions/[email protected]
with:
script: |
github.pullRequests.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})
github-token: ${{github.token}}