-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added container persistence for dev container; plus readme tweaks
- Loading branch information
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,24 @@ on: | |
branches: [ main ] | ||
|
||
jobs: | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and run Dev Container task | ||
uses: devcontainers/[email protected] | ||
with: | ||
# Change this to point to your image name | ||
imageName: ghcr.io/gresearch/astral-devcontainer | ||
# Change this to be your CI task/script | ||
runCmd: | | ||
# Add multiple commands to run if needed | ||
bundle install | ||
scan_ruby: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -16,6 +34,7 @@ jobs: | |
- name: Run brakeman | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/gresearch/astral-devcontainer | ||
runCmd: bin/brakeman --no-pager | ||
|
||
lint: | ||
|
@@ -49,6 +68,7 @@ jobs: | |
- name: Run tests | ||
uses: devcontainers/[email protected] | ||
with: | ||
imageName: ghcr.io/gresearch/astral-devcontainer | ||
runCmd: bin/rails test | ||
|
||
- name: Keep screenshots from failed system tests | ||
|
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