test: add more steps to validation pipeline #62
This file contains hidden or 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: validate | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| jobs: | |
| use_s3cmd: | |
| runs-on: ubuntu-latest | |
| name: Validate Project | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install dependencies | |
| run: npm ci | |
| - name: verify dist is up to date | |
| run: | | |
| mv dist/index.js old | |
| npm run build | |
| if cmp --silent -- old dist/index.js; then | |
| exit 0 | |
| else | |
| exit 1 | |
| fi | |
| - name: Run Tests | |
| run: npm run test | |
| - name: configure local | |
| use: ./ | |
| with: | |
| provider: linode | |
| region: us-east-1 | |
| - name: check that config file is in runner tmp | |
| run: test -f $RUNNER_TEMP/s3cmd.conf | |
| - name: check config | |
| run: s3cmd --dump-config |