Skip to content

Commit

Permalink
Work on dev-cont workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trallnag committed Jan 22, 2025
1 parent 49b8816 commit 5b93781
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/dev-cont.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Dev Cont

#
# Builds dev container and runs tests.
# Builds dev container and runs task.
#

on:
Expand All @@ -13,11 +13,36 @@ on:
- cron: 23 7 3 * *

jobs:
build:
dev-cont:
name: Dev Cont
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4

- name: Set up dev container CLI
run: npm install -g @devcontainers/cli

- name: Get dev container CLI version
run: devcontainer --version

- name: Create and run dev container
run: devcontainer up --workspace-folder=.

- name: Run task in dev container
run: devcontainer exec --workspace-folder=. task

keep-enabled:
name: Keep Enabled
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Keep workflow enabled
uses: gautamkrishnar/keepalive-workflow@v2

0 comments on commit 5b93781

Please sign in to comment.