diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7c3d7b3..a9defe8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,6 +17,9 @@ permissions: id-token: write # Needed for authentication pages: write # Needed for Github Pages +env: + DENO_DIR: /var/cache/deno + jobs: deno: name: Deploy to Deno Deploy @@ -24,14 +27,15 @@ jobs: steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 + - name: Set up Deno + uses: denoland/setup-deno@v1 with: deno-version: v1.44 - name: Cache Deno dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.DENO_DIR }} key: ${{ hashFiles('deno.lock') }} @@ -56,14 +60,15 @@ jobs: steps: - name: Clone repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 + - name: Set up Deno + uses: denoland/setup-deno@v1 with: deno-version: v1.44 - name: Cache Deno dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.DENO_DIR }} key: ${{ hashFiles('deno.lock') }} @@ -72,13 +77,13 @@ jobs: run: deno task build --base=mononykus - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: build - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index b88fd17..59abc50 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -6,18 +6,23 @@ on: pull_request: workflow_dispatch: +env: + DENO_DIR: /var/cache/deno + jobs: health: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: denoland/setup-deno@v1 + - name: Set up Deno + uses: denoland/setup-deno@v1 with: deno-version: v1.44 - name: Cache Deno dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.DENO_DIR }} key: ${{ hashFiles('deno.lock') }} @@ -27,9 +32,9 @@ jobs: - name: Lint run: deno lint - + - name: Test run: deno test -A --no-check - name: Check - run: deno check src/**.ts \ No newline at end of file + run: deno check src/**.ts