diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index c43120d..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - master - pull_request: - branches: - - master - schedule: - - cron: '45 21 * * 2' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-20.04 - - strategy: - fail-fast: false - matrix: - language: - - javascript - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5612e5b..5282850 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,14 +8,17 @@ on: branches: - master +permissions: + contents: read + jobs: build: name: Build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Docker build run: docker build . --tag arma-server-web-admin diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 85b4c18..390aca8 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -8,6 +8,9 @@ on: branches: - master +permissions: + contents: read + jobs: build: name: Build @@ -16,33 +19,34 @@ jobs: strategy: matrix: node-version: - - 16.x - - 14.x - - 12.x - - 10.x - - 8.x - - 6.x - - 4.x + - 24 + - 22 + - 20 + - 18 + - 16 + - 14 + - 12 + - 10 os: - - ubuntu-20.04 - - windows-2019 + - ubuntu-22.04 + - windows-2022 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - + - name: Get npm cache directory id: npm-cache run: | echo "::set-output name=dir::$(npm config get cache)" - name: Cache npm dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.npm-cache.outputs.dir }} key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}