Add volume and workdir to docker #2
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: Test Package | |
on: [push] | |
jobs: | |
tsc: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Dockerfile | |
run: docker build -t alumi . | |
- name: Run TSC | |
run: docker run --rm -v $(pwd):/code --workdir /code alumi bash -c 'npm run build && cd tests && ./tests.sh' |