Project TS #372
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: Socket Test | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
if: github.event.pull_request.draft == false | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Docker Pull | |
run: docker-compose pull | |
- name: Docker Layer Caching | |
uses: satackey/[email protected] | |
continue-on-error: true | |
- name: Docker Socket Build | |
run: docker build -t socket services/socket | |
- name: Docker Socket Lint | |
run: docker run socket sh -c "npm install --include=dev && npm run lint" | |