Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Mar 29, 2023
1 parent 86a6277 commit b624064
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.5.0
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -10,9 +10,15 @@ jobs:
name: Deploy Action Code
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Install dependencies
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_TOKEN }}
- name: Generate action code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/enable-auto-merge.yml
Expand Up @@ -4,6 +4,7 @@ on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
enable-auto-merge:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag-update.yml
Expand Up @@ -9,8 +9,8 @@ jobs:
name: Update Running Releases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.0
- uses: sersoft-gmbh/running-release-tags-action@v2.1.1
- uses: actions/checkout@v3
- uses: sersoft-gmbh/running-release-tags-action@v2
if: ${{ github.event.release.prerelease == false }}
with:
update-full-release: true
Expand Down
92 changes: 82 additions & 10 deletions .github/workflows/tests.yml
Expand Up @@ -37,13 +37,25 @@ jobs:
INPUT_PROJECT: __test__/TestProject/TestProject.xcodeproj
INPUT_SCHEME: TestProject
steps:
- uses: maxim-lobanov/setup-xcode@v1.5.1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ^14.0
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down Expand Up @@ -95,13 +107,25 @@ jobs:
INPUT_WORKSPACE: __test__/TestProject/TestProject.xcworkspace
INPUT_SCHEME: TestProject
steps:
- uses: maxim-lobanov/setup-xcode@v1.5.1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ^14.0
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down Expand Up @@ -140,13 +164,25 @@ jobs:
INPUT_SCHEME: TestPackage
INPUT_ACTION: test
steps:
- uses: maxim-lobanov/setup-xcode@v1.5.1
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ^14.0
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down Expand Up @@ -204,10 +240,22 @@ jobs:
env:
DEBUG_ENABLED: ${{ secrets.ACTIONS_STEP_DEBUG }}
run: test "${DEBUG_ENABLED}" == 'true'
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down Expand Up @@ -384,10 +432,22 @@ jobs:
env:
DEBUG_ENABLED: ${{ secrets.ACTIONS_STEP_DEBUG }}
run: test "${DEBUG_ENABLED}" == 'true'
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down Expand Up @@ -567,10 +627,22 @@ jobs:
env:
DEBUG_ENABLED: ${{ secrets.ACTIONS_STEP_DEBUG }}
run: test "${DEBUG_ENABLED}" == 'true'
- uses: actions/setup-node@v3
if: ${{ github.event_name == 'pull_request' }}
with:
node-version: 'lts/*'
check-latest: true
cache: 'npm'
- name: Fix npm permissions
if: ${{ github.event_name == 'pull_request' }}
run: |
if [ -d "${HOME}/.npm" ]; then
sudo chown -R "${USER}:$(id -gn ${USER})" "${HOME}/.npm"
fi
- name: Install dependencies
if: ${{ github.event_name == 'pull_request' }}
run: sudo npm i -g typescript @vercel/ncc
- uses: actions/checkout@v3.5.0
- uses: actions/checkout@v3
- name: Generate action code
if: ${{ github.event_name == 'pull_request' }}
run: npm run deploy
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"deploy": "rm -rf node_modules dist && npm install && npm run build && ncc build lib/main.js -o dist"
"deploy": "rm -rf node_modules dist && npm clean-install && npm run build && ncc build lib/main.js -o dist"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit b624064

Please sign in to comment.